Re: [Matplotlib-users] How to do accumulation plots with matplotlib

2009-09-05 Thread nbv4
Jouni K. Seppänen wrote: > > nbv4 writes: > >> [1,0,0,0,2,3,2,1,0,0,0,2,2,1,3,0,0,3...] >> >> [...] I want to take this data and display it in a linegraph >> as if it were this data: >> >> [1,1,1,1,3,5,7,8,8,8,10,12,13,16,16,16,19,...] > > You can use numpy.cumsum to transform your data. For

Re: [Matplotlib-users] making quicktime animations from linux -- summary

2009-09-05 Thread Nicolas Bigaouette
Thats good information to have gathered! It sure will be usefull. Have you look into the new html5's video tag? You can directly embed ogg in a page, without flash or any other plugin. Firefox 3.5 supports that, I think Safari would work too. See this page for information (and look up the source) h

Re: [Matplotlib-users] How to do accumulation plots with matplotlib

2009-09-05 Thread Jouni K . Seppänen
nbv4 writes: > [1,0,0,0,2,3,2,1,0,0,0,2,2,1,3,0,0,3...] > > [...] I want to take this data and display it in a linegraph > as if it were this data: > > [1,1,1,1,3,5,7,8,8,8,10,12,13,16,16,16,19,...] You can use numpy.cumsum to transform your data. For example, in ipython -pylab: In [4]: x = [1,

[Matplotlib-users] How to do accumulation plots with matplotlib

2009-09-05 Thread nbv4
Hi, I am a new user to matplotlib. I have a huge list of values that look like this: [1,0,0,0,2,3,2,1,0,0,0,2,2,1,3,0,0,3...] each point basically represents the derivative of the line at that point, if that makes any sense. I want to take this data and display it in a linegraph as if it were th

Re: [Matplotlib-users] funny bug with greek letters

2009-09-05 Thread Jouni K . Seppänen
Nicolas Chopin writes: > funny \gamma works, though. That's because \g has no special meaning, while e.g. \b means backspace: http://docs.python.org/reference/lexical_analysis.html#string-literals > On a related note, usetex=True is fancy, but produce much bigger eps > files for me, so I stick

Re: [Matplotlib-users] funny bug with greek letters

2009-09-05 Thread Nicolas Chopin
thanks a lot! I did not know about raw strings, sorry, even Python has its black corners, I guess. funny \gamma works, though. On a related note, usetex=True is fancy, but produce much bigger eps files for me, so I stick with the standard mathtex rendering. Thanks again Nicolas 2009/9/4 Nicolas C