Skip to main content

bqplot plugin providing marks powered by WebGL

Project description

bqplot-gl

Plugin to bqplot powered by WebGL.

Requirements

You need bqplot 0.13

pip install --pre 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.0a0.tar.gz (59.7 MB view hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

Supported by

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