Skip to main content

A type safe and backend independent plotting library for Python.

Project description

whitecanvas

PyPI - Version Python package index download statistics codecov PyPI - Python Version

A type safe and backend independent plotting library for Python, aiming at not the simplest, but the tidiest API.

Installation

pip install whitecanvas -U

Project Philosophy

Type safety

All the methods should be designed to have nice signature, and should return the same type of object, so that your program can be statically checked by the IDE.

Backend independency

Every plotting library has their own strength and weakness. Same code should work on different backends, so that you can choose the best one for different purposes.

Currently supported backends are matplotlib, pyqtgraph, vispy, plotly and bokeh. If you want other backends, please feel free to open an issue.

API tidiness

Most of (probably all of) the plotting libraries rely on the large number of arguments to configure the plot elements. They are usually hard to remember, forcing you to look up the documentation every time you want to make a plot.

whitecanvas tries to organize the methods, namespaces and arguments carefully so that you can make any kind of plot only with the help of the IDE's auto-completion and suggestions.

Documentation

Documentation is available here.

Examples

→ Find more examples

Rain-cloud plot in matplotlib

→ source

Super plot in matplotlib

→ source

Joint plot in matplotlib

→ source

Heatmap with text in pyqtgraph

→ source

Curve fitting in bokeh

→ source


Project details


Download files

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

Source Distribution

whitecanvas-0.3.3.tar.gz (669.5 kB view hashes)

Uploaded Source

Built Distribution

whitecanvas-0.3.3-py3-none-any.whl (350.7 kB view hashes)

Uploaded 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