supermjo-py

Python interface to Super-Mjograph


Keywords
graph, plot, visualization, data-science, mac, matplotlib, python
License
MIT
Install
pip install supermjo-py==0.2.0

Documentation

supermjo-py

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.

screen shot

Installation

pip install supermjo-py

Alternatively, manually installing is also easy, as this module consists only of a single file, supermjo.py. You can download it from this git repository. You, however, need to install the following dependencies by yourself:

  • py-applescript, pyobjc, numpy, pandas

Example

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

  • normal list
  • numpy.ndarray
  • pandas.DataFrame and Series

Features

  • 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.

API

Documented in https://github.com/moykeen/supermjo-doc/wiki/Scripting

Development phase

I myself heavily use this module for machine learning. In my environment, it works quite stably.