Metadata-Version: 2.4
Name: bqplot-linlog
Version: 0.1.0
Summary: A toggleable linear/log scale and axis with minor ticks for bqplot
Author-email: Thomas Robitaille <thomas.robitaille@gmail.com>
License: MIT
Keywords: ipython,jupyter,widgets
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: IPython
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.10
Requires-Dist: bqplot>=0.12
Requires-Dist: ipywidgets>=7.0.0
Provides-Extra: test
Requires-Dist: pytest; extra == 'test'
Description-Content-Type: text/markdown

# 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

```bash
pip install bqplot-linlog
```

## Usage

```python
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'
```
