@hackage matplotlib0.1.2.1

Bindings to Matplotlib; a Python plotting library

Matplotlib

Build Status

Haskell bindings to Python's Matplotlib. It's high time that Haskell had a fully-fledged plotting library!

matplotlib contour plot

More info and docs forthcoming. For now see the tests for some examples.

Note that the API will undergo one large change in the next few days to make optional arguments more pervasive and less of a hassle and to eliminate some necessary type annotations. After this it will stabilize.

import Matplotlib

onscreen $ contourF (\a b -> sin (degreesRadians a) + cos (degreesRadians b)) (-100) 100 (-200) 200 10

Installation

You will need several python libraries to run this code which can be installed on Ubuntu machines with the following command:

sudo apt-get install -y python3-matplotlib python3-numpy python-mpltoolkits.basemap

If you have instructions for other machines or OSes let me know.