Skip to main content

A toggleable linear/log scale and axis with minor ticks for bqplot

Project description

bqplot-linlog

Note: this package is experimental and the API may change.

A toggleable linear/log scale and axis with minor ticks for bqplot, and with improved labels.

Features

  • LinLogScale: A scale that can switch between linear and log modes without replacing scale objects
  • LinLogAxis: An axis with minor tick support — log mode shows powers-of-10 labels with 10ⁿ notation and standard minor ticks; linear mode shows minor ticks subdividing major intervals

Installation

pip install bqplot-linlog

Usage

from bqplot import Figure, Lines
from bqplot_linlog import LinLogScale, LinLogAxis

scale_x = LinLogScale(mode='linear')
scale_y = LinLogScale(mode='log')

axis_x = LinLogAxis(scale=scale_x, side='bottom')
axis_y = LinLogAxis(scale=scale_y, side='left')

line = Lines(x=x, y=y, scales={'x': scale_x, 'y': scale_y})
figure = Figure(axes=[axis_x, axis_y], marks=[line])

# Toggle at any time:
scale_y.mode = 'linear'

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_linlog-0.2.0.tar.gz (730.4 kB view details)

Uploaded Source

Built Distribution

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

bqplot_linlog-0.2.0-py3-none-any.whl (736.8 kB view details)

Uploaded Python 3

File details

Details for the file bqplot_linlog-0.2.0.tar.gz.

File metadata

  • Download URL: bqplot_linlog-0.2.0.tar.gz
  • Upload date:
  • Size: 730.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bqplot_linlog-0.2.0.tar.gz
Algorithm Hash digest
SHA256 dc5e27628258be5b889b195ce3d4fbaf16f539299d41968bdeaf6943feaa5758
MD5 daf4767ff15b1058e89c5111ae6ca38b
BLAKE2b-256 2e36a23449d383c23066b1940a5b0063cbb883771d367005d683ca5fdeb6f0f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for bqplot_linlog-0.2.0.tar.gz:

Publisher: ci.yml on glue-viz/bqplot-linlog

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bqplot_linlog-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: bqplot_linlog-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 736.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bqplot_linlog-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f916662de986f150646024925b335e9cbdf7ba57a02bb2bc5fce1a6c45d851fa
MD5 bb246ec34c4a29e1d1b459c0e3ec7e0f
BLAKE2b-256 837946326afde4616bdfc50529b562c02bf37b42f8fe7fd244f3d49e438d2ded

See more details on using hashes here.

Provenance

The following attestation bundles were made for bqplot_linlog-0.2.0-py3-none-any.whl:

Publisher: ci.yml on glue-viz/bqplot-linlog

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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