Code Monkey home page Code Monkey logo

streamplot's Introduction

StreamPlot

Real Time Plotting in Python with pyqtgraph. Simple to use.

  • Install
  • Test
  • Use
  • Install from source

Install

Install pyqtgraph following the instructions on this webpage

Use pip (install from repo, see below)

pip install streamplot

Test

To test the install, run the test.py script.

python test.py

Use

In a python code

  • Import package
from streamplot import PlotManager
  • Create instance of PlotManager with
plt_mgr = PlotManager(title="My first plot")
  • Send data to the plot
x, y = 1, 2
plt_mgr.add(name="name_of_variable", x=x, y=y)
plt_mgr.update()
  • If you want to plot multiple variables, do something like
x1, y1 = 2, 4
plt_mgr.add(name="1", x=x1, y=y1)
plt_mgr.add(name="2", x=x2, y=y2)
plt_mgr.update()
  • close the graphs from Terminal
plt_mgr.close()

Install from source

Clone repo, and run from Terminal

python setup.py install

Alternatively, if you want to modify the package and just add an egg-link to site-packages

python setup.py develop

streamplot's People

Contributors

guillaumegenthial avatar joaopalma5 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.