Python interface to Super-Mjograph, which you can use as an alternative to matplotlib. In terms of 2D plot, it is fully competent for data science, even though it does not support 3D functionality. You can easily create publication-quality charts, by leveraging the rich GUI of macOS-native application.
pip install supermjo-py
Alternatively, manually installing is also easy, as this module consists only of a single file,
You can download it from this git repository. You, however, need to install the following dependencies by yourself:
- py-applescript, pyobjc, numpy, pandas
import supermjo as mjo import numpy as np x = np.random.randn(100) mjo.plot(x)
Note that you need to launch SuperMjograph.app manually before invoking the plot command.
The argument accepts
- Every series property (such as line and marker styles) can be prescribed in optional arguments of the plot command.
- Very fast. Data are transferred in-memory. Hence, there is no disk I/O overhead. As a result, It takes less than 1 s for data with million of samples to complete visualization.
Documented in https://github.com/moykeen/supermjo-doc/wiki/Scripting
I myself heavily use this module for machine learning. In my environment, it works quite stably.