Getting Started#

Installation#

Clone the repository and install with uv (or pip):

git clone https://github.com/your-org/anyplotlib.git
cd anyplotlib
uv sync          # installs the project + all dependencies

Quick start#

1-D plot#

import numpy as np
import anyplotlib as vw

x = np.linspace(0, 4 * np.pi, 512)
signal = np.sin(x)

fig, ax = vw.subplots(1, 1, figsize=(620, 320))
v = ax.plot(signal, axes=[x], units="rad")
v  # display in a Jupyter cell

2-D image#

import numpy as np
import anyplotlib as vw

data = np.random.default_rng(0).standard_normal((256, 256))
fig, ax = vw.subplots(1, 1, figsize=(500, 500))
v = ax.imshow(data, units="px")
v  # display in a Jupyter cell

Bar chart#

import numpy as np
import anyplotlib as vw

values = np.array([42, 55, 48, 63, 71, 68], dtype=float)
months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun"]

fig, ax = vw.subplots(1, 1, figsize=(560, 320))
bar = ax.bar(values, x_labels=months, color="#4fc3f7", show_values=True)
bar  # display in a Jupyter cell

For more elaborate usage, see the Examples gallery or the API Reference.