A Python package for plotting.
Project description
pyglplot
A high-performance OpenGL plotting library for Python. Works in Jupiter notebooks and in standalone Python scripts. Based on the JavaScript library webgl-plot.
Installation
pip install pyglplot
Getting started
import pyglplot as glp
import numpy as np
# Create a Line object
line = glp.Line()
x = np.linspace(0, 10, 100)
y = np.sin(x)
# Add data to the line
line.setXY(x, y)
# Create pyglplot window
win = glp.Pyglplot()
# Add the line to the window
win.addLine(line)
# Show the window
win.show()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyglplot-0.0.3.tar.gz
(4.9 kB
view hashes)