# Matplotlib
[](https://circleci.com/gh/abarbu/matplotlib-haskell/tree/master)
Haskell bindings to Python's Matplotlib. It's high time that Haskell had a
fully-fledged plotting library!

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.
```haskell
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:
```bash
sudo apt-get install -y python3-matplotlib python3-numpy python-mpltoolkits.basemap
```
If you have instructions for other machines or OSes let me know.