Skip to main content

matplotlib style OO bindings for altair

Project description

altplotlib provides matplotlib-style object oriented bindings to altair.

Description

Create high quality altair plots using more familiar calls.

import altplotlib
import numpy as np

rng = np.random.default_rng(seed=42)

n_points, n_series = 100, 5
multiple = rng.normal(size=(n_points, n_series)).cumsum(axis=0)
x = np.linspace(0, 14, n_points)

axis = altplotlib.AltairAxis()

axis.plot(multiple[:, :3])
axis.set_title("Hello, world!")
axis.set_xlabel("This is my x-axis")
axis.set_ylabel("This is my y-axis")
axis.plot(multiple[:, 3], c="xkcd:rust")
axis.plot(multiple[:, 4], c="tab:cyan")
https://raw.githubusercontent.com/evanr70/altplotlib/master/gallery/simple_example.png

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

altplotlib-0.0.3-py2.py3-none-any.whl (4.9 kB 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