Whitecanvas
A type safe and backend independent plotting library for Python.
Install / Use
/learn @hanjinliu/WhitecanvasREADME
whitecanvas
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
Rain-cloud plot in matplotlib

Super plot in matplotlib

Joint plot in matplotlib

Heatmap with text in pyqtgraph

Curve fitting in bokeh

Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR
