[Matplotlib-users] fading line plot

2013-02-24 Thread Paul Anton Letnes
Hi everyone, I've been looking into making an animation of a mechanical system. In its first incarnation, my plan was as follows: 1) Make a fading line plot of two variables (say, x and y) 2) Run a series of such plots through ffmpeg/avencode to generate an animation First, I'm wondering whether

[Matplotlib-users] specgram bug

2012-11-12 Thread Paul Anton Letnes
Hi, not 100% sure this is a bug, but here goes: In file matplotlib/lib/matplotlib/mlab.py, the functions psd (power spectral density) and specgram returns the real part of the fourier transform. % grep -n Pxx.real mlab.py 390:return Pxx.real,freqs 470:Pxx = Pxx.real #Needed since helper

[Matplotlib-users] bug in mpl_toolkits.axes_grid1.AxesGrid?

2011-05-24 Thread Paul Anton Letnes
Hi! I am wondering if there is a bug in: mpl_toolkits.axes_grid1.AxesGrid I am trying to run this example (I am of course working on something else, but I am trying to build a minimal example of my problem): http://matplotlib.sourceforge.net/examples/axes_grid/demo_axes_grid.html This would be a

Re: [Matplotlib-users] png to slideshow (gif)

2011-03-19 Thread Paul Anton Letnes
On 18. mars 2011, at 12.49, Rita wrote: > If I have 30 PNGs and i would like to make a slideshow or an animated gif > what is the best way to do this? Can matplotlib do this? > I have used ffmpeg in the past with some success. It generates mpeg 4 video files, but maybe that's OK for you? The

[Matplotlib-users] pyplot.figure() memory leak?

2011-03-08 Thread Paul Anton Letnes
Hi! This simple loop: >>> import time >>> import pylab >>> for i in range(100): ... time.sleep(0.1) ... pylab.figure() ... will have python use more and more memory. While this is not technically a memory leak, it becomes one in practice, if I want to create a large number of figure

Re: [Matplotlib-users] Legend outside plot?

2011-02-10 Thread Paul Anton Letnes
Matplotlib is great! I created all my figures in this paper [0] using matplotlib. I am impressed with the quality you get. I attach the plotting script for fig. 9, which does exactly what you want, I believe. There is a lot of other junk in there, so look for the "legend" function, it all happen

Re: [Matplotlib-users] plots do not scale to size

2011-02-01 Thread Paul Anton Letnes
On 10. juni 2009, at 14.53, John Hunter wrote: > On Wed, Jun 10, 2009 at 1:58 AM, Paul Anton > Letnes wrote: > >>> This _must_ be a bug. Consider the following: >>> ## >>> import matplotlib > > No it is not a bug -- mpl is doing what y

Re: [Matplotlib-users] TeX fails in general

2010-08-20 Thread Paul Anton Letnes
On 18. aug. 2010, at 23.21, Friedrich Romstedt wrote: > 2010/8/17 Paul Anton Letnes : >> If I try to use LaTeX for text processing (i.e. text.usetex : True in my >> matplotlibrc), I get a cryptic LaTeX error which didn't use to be there >> before. I get the same pro

[Matplotlib-users] TeX fails in general

2010-08-17 Thread Paul Anton Letnes
Hello everyone. If I try to use LaTeX for text processing (i.e. text.usetex : True in my matplotlibrc), I get a cryptic LaTeX error which didn't use to be there before. I get the same problem when using matplotlib-0.98.5 which I compiled from source, and matplotlib-1.0.0 from macports. My pytho

Re: [Matplotlib-users] problems with contourf plots

2009-07-28 Thread Paul Anton Letnes
Hi, thanks a lot Eric! I'm sorry I bothered you with this. There's obviously an error in how my data generating script works. cheers, Paul. On 27. juli. 2009, at 21.48, Eric Firing wrote: > Paul Anton Letnes wrote: >> Hi, >> I'm having strange problems wit

Re: [Matplotlib-users] Quiver plot of a netcdf file

2009-06-11 Thread Paul Anton Letnes
In addition to scipy.io, there are some pure python netcdf readers, including pupynere (might be easier to install a pure python module?). Also, you have ScientificPython.io.netCDF, in case this is more convenient for you. ncdump is almost certainly not the way to go, it is best suited for human in

Re: [Matplotlib-users] plots do not scale to size

2009-06-10 Thread Paul Anton Letnes
On 10. juni. 2009, at 14.53, John Hunter wrote: > On Wed, Jun 10, 2009 at 1:58 AM, Paul Anton > Letnes wrote: > >>> This _must_ be a bug. Consider the following: >>> ## >>> import matplotlib > > No it is not a bug -- mpl is doing what

[Matplotlib-users] plots do not scale to size

2009-06-10 Thread Paul Anton Letnes
> On 9. juni. 2009, at 17.18, Jouni K. Seppänen wrote: > >> Chaitanya Krishna writes: >> >>> On Tue, Jun 9, 2009 at 12:05 PM, Paul Anton Letnes >>> >> > wrote: >>>> >>>> When I run the script below, the xlabel and ylabel do

[Matplotlib-users] plots do not scale to size

2009-06-09 Thread Paul Anton Letnes
Dear all. When I run the script below, the xlabel and ylabel do not show up. If I increase the figure size, it all works fine. If I open the file in Adobe Illustrator, the x and ylabels are both there, but outside the canvas (or bounding box or whatever it is called). I believe this must

[Matplotlib-users] plots do not scale to size

2009-06-09 Thread Paul Anton Letnes
Dear all. When I run the script below, the xlabel and ylabel do not show up. If I increase the figure size, it all works fine. If I open the file in Adobe Illustrator, the x and ylabels are both there, but outside the canvas (or bounding box or whatever it is called). I believe this must

[Matplotlib-users] Fwd: making publication quality plots

2009-06-05 Thread Paul Anton Letnes
unnecessarily; I rarely see such frames in publications. Thanks! Paul. Begin forwarded message: > From: Chaitanya Krishna > Date: 3. juni 2009 08.26.07 GMT+02:00 > To: Paul Anton Letnes > Cc: matplotlib-users@lists.sourceforge.net > Subject: Re: [Matplotlib-users] making publicatio

Re: [Matplotlib-users] making publication quality plots

2009-06-02 Thread Paul Anton Letnes
On 30. mai. 2009, at 13.56, John Hunter wrote: > On Sat, May 30, 2009 at 3:50 AM, Paul Anton Letnes > wrote: >> Hello again, >> >> >> I can set the figure size and font size, that all works fine. >> However, >> the legend is prohibitively large

Re: [Matplotlib-users] making publication quality plots

2009-05-30 Thread Paul Anton Letnes
> be the same size as the text in your latex document. > > Is this what you want? > Regards, > --Damon > > On 29 May 2009, at 16:25, Paul Anton Letnes wrote: > >> Howdy y'all! >> >> I'm trying to make a publication quality plot for a two-column la

[Matplotlib-users] making publication quality plots

2009-05-29 Thread Paul Anton Letnes
Howdy y'all! I'm trying to make a publication quality plot for a two-column latex article. I'm using latex for text processing, so the plot quality itself is impeccable. However, as I scale the plot size down, the legend becomes extremely large compared to the plot itself. Has anyone solv

Re: [Matplotlib-users] plot windows

2009-02-24 Thread Paul Anton Letnes
On 24. feb.. 2009, at 08.11, Eric Firing wrote: > Paul Anton Letnes wrote: >> Hello, >> I want to save a large number of figures to file, roughly like this: >> import pylab >> for i in xrange(100): >> pylab.plot(x[i], y[i]) >> pylab.savefig('

[Matplotlib-users] plot windows

2009-02-23 Thread Paul Anton Letnes
Hello, I want to save a large number of figures to file, roughly like this: import pylab for i in xrange(100): pylab.plot(x[i], y[i]) pylab.savefig('plot' + str(i) + '.eps') pylab.figure() However, a large number of figure windows show up on screen, and eventually, the applicati

Re: [Matplotlib-users] Error messages with xpdf / LaTeX

2009-02-23 Thread Paul Anton Letnes
On 23. feb.. 2009, at 14.51, Darren Dale wrote: On Mon, Feb 23, 2009 at 3:59 AM, Paul Anton Letnes > wrote: Hi everyone, I'm having issues using LaTeX text processing with the xpdf distiller. After playing with my settings, I finally managed to get vector graphics output using La

[Matplotlib-users] Error messages with xpdf / LaTeX

2009-02-23 Thread Paul Anton Letnes
Hi everyone, I'm having issues using LaTeX text processing with the xpdf distiller. After playing with my settings, I finally managed to get vector graphics output using LaTeX test processing. However, a weird error message pops up in the terminal every time (mostly annoying, the plotting