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 details)

Uploaded Python 2 Python 3

File details

Details for the file altplotlib-0.0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: altplotlib-0.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.5

File hashes

Hashes for altplotlib-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c78b97901889a6cb4081222a5da4ef34d3e12cdeebd7ecc602942a0ac689d2e7
MD5 9d8f2355db906787b4b362e0fe968137
BLAKE2b-256 224c0ede8e77fd12014d1b8a521c98190ccb0e8815e15966b702d30a7a774d2e

See more details on using hashes here.

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