Skip to content

pomcho555/pylanarian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

license

pylanarian

A plotting package for real time and animation. It is EASY to visualize your IoT sensor data. It could be multi-plot using subplot. It works up to 16th graphs.

demo

Prequisite

  • python3.5+
  • matplotlib

Get Started,

git clone https://github.com/pomcho555/pylanarian.git
cd <installed directory>
pip install -e .

Tutorial

import modules
from pylanarian import SequentialGraph
from pylanarian import GraphManager

  1. Make a graph instance. You can use various options!
    g1 = SequentialGraph(title="sin", margin=0.1)
    Also instantiate a second graph.
    g2 = SequentialGraph(title="cos", option=".r", margin=0.1)
  2. Then bind graphs to GraphManager
    GM = GraphManager(g1, g2)
    Also, you could write list type.
    GM = GraphManager(*[g1, g2])
  3. Initilize plot configure.
    GM.init_plot()
  4. Put data into GM(before this you prepare list type data)
    GM.set_alldata(x, y1, y2) # y1 is g1's parameter, and y2 is also g2's
  5. After put the data, you must pause.
    GM.pause(0.1)

You can demonstorate sample script on /samples/ directory.
python sample.py
Real time plot version is:
python realtime_sample.py

License

MIT

About

An animated graph and real time plotting package.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages