Skip to main content

bqplot plugin providing marks powered by WebGL

Project description

bqplot-gl

Plugin to bqplot powered by WebGL.

Installation

pip install --pre bqplot-gl bqplot

Usage

bqplot-gl provides marks that make use of WebGL for the rendering, providing better performances.

Those marks have the same APIs as their equivalent in bqplot.

from bqplot import *
from bqplot_gl import LinesGL, ScatterGL

import numpy as np
import pandas as pd

n_points = 150_000

np.random.seed(0)
y = np.cumsum(np.random.randn(n_points)) + 100.

sc_x = LinearScale()
sc_y = LinearScale()

scatter = ScatterGL(
    x=np.arange(len(y)), y=y,
    default_size=1,
    scales={'x': sc_x, 'y': sc_y}
)
ax_x = Axis(scale=sc_x, label='Index')
ax_y = Axis(scale=sc_y, orientation='vertical', label='Points')

Figure(marks=[scatter], axes=[ax_x, ax_y], title='Scatter powered by WebGL')

bqplot-gl

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

bqplot_gl-0.1.0.tar.gz (5.4 MB view details)

Uploaded Source

Built Distribution

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

bqplot_gl-0.1.0-py2.py3-none-any.whl (5.1 MB view details)

Uploaded Python 2Python 3

File details

Details for the file bqplot_gl-0.1.0.tar.gz.

File metadata

  • Download URL: bqplot_gl-0.1.0.tar.gz
  • Upload date:
  • Size: 5.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for bqplot_gl-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f69702817022ae99d9f87024cc271e2d30d5324ea696def059fc671cad23ea2d
MD5 6ad53dfd67ff80284056e3fe26a4d34d
BLAKE2b-256 da7e83d575d6c757f6f8462e2e20f7cfd8b8f3ecdc2e46cea9b135ee6cff5661

See more details on using hashes here.

File details

Details for the file bqplot_gl-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: bqplot_gl-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.1 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for bqplot_gl-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f7faf28827c46478848477e288a2bfa7d2e7f7d2a1e93a3bf9c6794d175a4b91
MD5 5cc9a510b5da55af126d5466f04d2217
BLAKE2b-256 ea2e98585dbd9dc280a6b852f456d66c578c6c7c145a6535f0905ae7b1e4e9c5

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