matplotlib

Plotting with Python.
web | docs | ... | license?

See also | :graph-drawing :visualization

Notes

Conceptual introduction

http://matplotlib.org/faq/usage_faq.html (good to read if you have to dive in)

See also:

Plots

pip installation on Ubuntu

This is an easy way to install all non-Python dependencies on :ubuntu before doing a :python:pip installation:

sudo apt-get build-dep python-matplotlib
# installs dependencies of the system version
# (does not install the system version itself)
pew workon your_virtualenv
# enter your virtualenv as usual, you may use a different tool to do this
pip install matplotlib
# installs matplotlib (and all python dependencies like numpy) from pypi

Note this installs all dependencies (for all matplotlib components, including optional components that you may not use). The benefit is: easy installation, future-proofing. The cost is: bandwidth/download time. This method doesn't account for: brand new dependencies (if pip version > system version and very new dependencies have been introduced) — in this case you'll need to do it the traditional way (find what's breaking and consult documentation/support).

References:

Generating plots for static HTML

Rough dataflow for plots in static HTML
data > numpy > matplotlib > image > jinja2 template > static html

See also:

TODO:



Backlinks: visualization graph-drawing

CC0 / Public domain dedication To the extent possible under law, d3vid seaward has waived all copyright and related or neighboring rights to "matplotlib in Grasmere notebook, including code snippets" (why? how?)