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.1.0.tar.gz (616.9 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.1.0-py3-none-any.whl (731.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bqplot_linlog-0.1.0.tar.gz
  • Upload date:
  • Size: 616.9 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.1.0.tar.gz
Algorithm Hash digest
SHA256 51a8073d10ba01f4847f920cfcfd13b04bca0b85f472433792a6080321a0c68a
MD5 9be301142d8bca48006dd8c1b452b12b
BLAKE2b-256 28290124998087863220aa01bf5bfd6671c2df2372e747cae9a25c39b33be60c

See more details on using hashes here.

Provenance

The following attestation bundles were made for bqplot_linlog-0.1.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: bqplot_linlog-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 731.1 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7457131cb2a5b43ae8874f3a1aff53d0918a1afd66da5ec097e16a46aa12461
MD5 a2a7a4c632168ca0ff21a119828dde1d
BLAKE2b-256 288e2fbfd274c10f1c4559006a165a18e7c7ee1c826bbcc83d03d249ead89473

See more details on using hashes here.

Provenance

The following attestation bundles were made for bqplot_linlog-0.1.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