xonsh/xontrib/mpl.py

16 lines
228 B
Python
Raw Normal View History

2016-05-08 20:17:48 -04:00
"""Matplotlib xontribution."""
2017-02-12 17:16:42 +08:00
from xonsh.tools import unthreadable
2016-05-08 20:17:48 -04:00
2016-08-04 19:19:28 -04:00
__all__ = ()
2016-07-18 11:30:57 +02:00
2016-08-04 22:28:21 -04:00
2017-02-12 17:16:42 +08:00
@unthreadable
2016-08-04 19:19:28 -04:00
def mpl(args, stdin=None):
2016-05-08 20:17:48 -04:00
"""Hooks to matplotlib"""
2016-05-08 22:57:01 -04:00
from xontrib.mplhooks import show
2016-05-08 20:17:48 -04:00
show()
2016-08-04 19:19:28 -04:00
aliases['mpl'] = mpl