https://github.com/moykeen/supermjo-py
Python interface to Super-Mjograph
https://github.com/moykeen/supermjo-py
data-science graph mac matplotlib plot python visualization
Last synced: about 1 year ago
JSON representation
Python interface to Super-Mjograph
- Host: GitHub
- URL: https://github.com/moykeen/supermjo-py
- Owner: moykeen
- License: mit
- Created: 2017-09-07T15:28:55.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-10-22T08:15:56.000Z (over 1 year ago)
- Last Synced: 2025-02-19T09:26:25.483Z (over 1 year ago)
- Topics: data-science, graph, mac, matplotlib, plot, python, visualization
- Language: Python
- Homepage: http://www.mjograph.net/
- Size: 2.01 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# supermjo-py
Python interface to [Super-Mjograph](http://www.mjograph.net/), 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.

## 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
```python:sample
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.