Metadata-Version: 2.1
Name: altplotlib
Version: 0.0.2
Summary: matplotlib style OO bindings for altair
Home-page: https://github.com/evanr70/altplotlib
Author: Evan Roberts
Author-email: evan.roberts@kellogg.ox.ac.uk
License: mit
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
Description-Content-Type: text/x-rst; charset=UTF-8
Requires-Dist: numpy
Requires-Dist: matplotlib
Requires-Dist: altair
Requires-Dist: pandas
Provides-Extra: testing
Requires-Dist: pytest ; extra == 'testing'
Requires-Dist: pytest-cov ; extra == 'testing'

==========
altplotlib
==========


altplotlib provides matplotlib-style object oriented bindings to altair.


Description
===========

Create high quality altair plots using more familiar calls.

.. code-block:: python

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

.. image:: ./gallery/simple_example.png


