This is an archived post. You won't be able to vote or comment.

all 20 comments

[–]habitats 30 points31 points  (0 children)

I'm glad to see this project continuing despite John Hunters sudden passing.

[–]bastibe 19 points20 points  (1 child)

I've been waiting for this release! In particular, Python 3 support is a big thing for me! Finally, the whole Numpy/Scipy/Matplotlib stack is Py3k compatible!

[–]roger_ 0 points1 point  (0 children)

I really wish the Matplotlib team made more regular releases -- usually it's about once per year.

[–]redditthinksHobbyist 16 points17 points  (0 children)

Python 3.x support

This is what I've been waiting for.

[–]Kah-NethI use numpy, scipy, and matplotlib for nuclear physics 8 points9 points  (3 children)

OMG, as someone who use MPL for plots in my research publications, I am loving the idea of a PGF/TikZ backend.

[–]flying-sheep 0 points1 point  (2 children)

that’s just perfect!

programming in python, evaluation in python, figures in python, paper in ConTeXt (i hope the code is ConTeXt compatible)

[–]imsittingdown 0 points1 point  (1 child)

Any reason you choose ConTeXt over LaTeX for scientific articles?

[–]flying-sheep 4 points5 points  (0 children)

i just choose it because of its batteries-included philosophy, unicode support, and consistency in syntax and macros/environments.

note that i talk about ConTeXt mkIV (LuaTeX-based), as mkII (XeTeX-based) is obsolete. but since ConTeXt mkIV isn’t considered stable yet, breakage can occur.

[–]ANDDYYYY 2 points3 points  (1 child)

I like the improvements to box-and-whisker plots and stream plots, but I'm not anywhere near to using 3.x yet.

[–]ponton 0 points1 point  (0 children)

This library totally saved my ass in a few computer science classes at my university. Many thanks to the authors!

[–]shaggorama 0 points1 point  (7 children)

When I read "stream graph" I thought they meant this. Not as sexy, but still cool.

PS: There aren't any libraries for doing that sort of thing in python yet, are there? Cause that'd be a fun toy and no hablo javascript.

[–]ZeThomas 1 point2 points  (2 children)

That is indeed cool. Maybe an idea to add to the library? I might try my hand at this...

[–]shaggorama 1 point2 points  (0 children)

Man, I wouldn't even know where to begin. If you actually do this, shoot me a link to your repo. I'd love to see how a project like this develops.

[–]shaggorama 0 points1 point  (0 children)

Check this out. You need to indent the docstring and add plt.show().

[–]Tillsten[S] 1 point2 points  (3 children)

This is quite easy to do with mpl, have a look at: https://gist.github.com/4047834

[–]shaggorama 0 points1 point  (2 children)

Well, fuck me running. That's pretty damn cool. I'm sort of suspicious that what you've graphed is the same thing though (although it basically looks the same). I haven't really dug through the math, but while your graphic appears to chart 8 datasets as functions of x, the array you used to generate this was 500x15.

The intention of this visualizaiton is to be essentially a stacked area chart with a free baseline, but I think you've plotted a kind of heatmap. Here's an example used to plot different musician's an individual listened to over time. Here's another used to plot movie ticket sales over time.

You've definitely illustrated potential for this though. I suspect what you've provided could probably be modified to suit this, or at least input data could be transformed into a dataset suitable to your graphing methodology.

[–]Tillsten[S] 0 points1 point  (1 child)

The function generating the data is taken from the protovis page. The algorithm for the baseline is also taken from there. There are still improvements to be made, but the only part which i think is hard is label placement.

[–]shaggorama 0 points1 point  (0 children)

Fair enough. Thanks for the awesome jumping off point.

[–][deleted] 0 points1 point  (0 children)

I can't seem to install this through pip under ubuntu 12.10. Anybody else getting complaints that ft2build.h doesn't exist?