![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqBxL3Zc4_gmPNy17JldJmbsiLXMx5vk_kch4oDDWFB0NWGnVbrl0Qm0EgKXDwEleLrKktIjqqNUyg0YrOeZEkbXDHYCH0Xeeaz3G9vVLFtHC2Svk6gI7VSHS5mclOFiJTA0j2zopJ2faR/s320/Screen+shot+2009-12-14+at+7.25.49+AM.png)
Now that I have a working intall of matplotlib, I'm going to explore its capabilities to replace R, at least for plotting stuff. The more heavy duty components of R will still be irreplaceable.
The matplotlib example for histograms is here. It's not very intuitive, at least at first sight. I took nearly everything in the example code and wrapped it in a function with a silly name and placed it in a module called H. If you want to follow this example it should be simple to figure out what I did.
[UPDATE: Although this works well, and is said to be more efficient, there is a simpler API. See example here]
The script that connects my data with the plot code is just a couple of lines: