How It Works
Currently the PyDyGraphs module depends on Pandas to generate a JSON representation of the data for plotting. This required dependancy may be removed with future work. Pandas can be installed via pip.
Run the included example:examples/PyDyGraphTester.ipynb, or paste this code into an Ipython Notebook to generate an interactive timeseries plot:
# Import pydygraphs and numpy import pydygraphs import numpy as np # Forma figure fig = pydygraphs.figure(width = 600, height = 400) # Generate data for the plot x = np.array(range(100)) y = [np.sin(np.random.rand(100)),-np.sin(np.random.rand(100))] # Plot the data on the figure fig.plot(x,y, color=['navy','magenta']) fig.title("Figure 1") fig.xlabel('Series') fig.ylabel('Value') # Show the figure in this cell of the notebook fig.show()
Simply clone this repository and include the pydygraphs.py module in your Ipython Notebooks.
Want to contribute:
Please submit a pull request! Email firstname.lastname@example.org for questions.