Skip to main content

A Python package for plotting.

Project description

PyPI version

pyglplot

A powerful Python plotting library that leverages OpenGL to provide exceptional performance and high-quality visualizations of 2D data. Based on the JavaScript library webgl-plot this library is specifically designed for real-time plotting of line, scatter, and histogram plots. This library is cross-platform and works on Windows, Linux and Mac thanks to GLFW windowing library. Furthermore, It is also compatible with Jupyter notebooks. This package is ideal for plotting realtime data from sensors and instruments, including streaming devices such as microphones and cameras, empowering users to analyze data as it is being generated.

Installation

python -m pip install pyglplot

Getting started

import numpy as np
from pyglplot import line


# Create a Line object
lineSize = 1000
plotLine = line.Line(lineSize)
x = np.linspace(-1, 1, lineSize)
y = np.sin(x)

# Add data to the line
plotLine.updateLine(x, y)

plotLine.run()

Animating a plot

lineSize = 1000

plotLine = line.Line(lineSize)

x = np.linspace(-1, 1, lineSize)
y = 0

def update():
    global y
    y = 0.5*np.sin(10*x) + np.random.rand(lineSize) * 0.1
    plotLine.updateLine(x, y)

plotLine.run(update)

License

MIT

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.1.3.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyglplot-0.1.3-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file pyglplot-0.1.3.tar.gz.

File metadata

  • Download URL: pyglplot-0.1.3.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for pyglplot-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4a82a54c61e87f5c4dd0b41d9b43a2c8bb29ecd52928ac454c9d765e5da93086
MD5 ea619b82d5cb5590e671121106c12ac2
BLAKE2b-256 9621be4d15731249090a9d5da2d4e1bd1d3220eb156157329a46bdb9902ac4cd

See more details on using hashes here.

File details

Details for the file pyglplot-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: pyglplot-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for pyglplot-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dfeb1db02bdde99ff009776e643514d26716d53291d81cc71a4e600590930fe5
MD5 3b0eae3674137e2cb6d9655760d553d7
BLAKE2b-256 9b27c65fd407b29a9202649625c7c2d996e50f530e6d127fa7b6a705e8a7ce48

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page