Metadata-Version: 2.1
Name: pyglplot
Version: 0.0.2
Summary: A Python package for plotting.
Project-URL: Homepage, https://github.com/danchitnis/pyglplot
Project-URL: Bug Tracker, https://github.com/danchitnis/pyglplot/issues
Author-email: Danial Chitnis <d.chitnis@ed.ac.uk>
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# 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

```bash
pip install pyglplot
```

## Getting started

```python
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()
```
