Re: [Matplotlib-users] Colorbar not working with specgram

2009-07-22 Thread davide lasagna
Thanks Eric for pointing out this. However i've found that psd and specgram plot 10*log10*(Pxx/max(Pxx)), so i'll have a range from 0 db down. Anyway, what do you mean by should not be axes method? Do you mean using the array output of specgram and psd and plotting that result by myself? Cheers

Re: [Matplotlib-users] Colorbar not working with specgram

2009-07-22 Thread Eric Firing
davide lasagna wrote: Thanks Eric for pointing out this. However i've found that psd and specgram plot 10*log10*(Pxx/max(Pxx)), so i'll have a range from 0 db down. Aha, I wasn't looking closely enough! Anyway, what do you mean by should not be axes method? That was a side remark about what

Re: [Matplotlib-users] I really can't get into hist() barstacked

2009-07-22 Thread ms
Sandro Tosi ha scritto: On Wed, Jul 22, 2009 at 10:25, msdeviceran...@gmail.com wrote: Sandro Tosi ha scritto: Hi all, I'd like to do a histogram with barstacked style. Well, I'm not able to make it in any way :( - what is the format of the the data to pass? - what's the value of bins?

Re: [Matplotlib-users] centering axis ticks labels

2009-07-22 Thread Johann Cohen-Tanugi
hello, anyone has an idea about how to get this right? thanks a lot in advance, Johann Johann Cohen-Tanugi wrote: hi there, I stumbled into yet another problem, see script attached. Now there are 10 pixels and 10 label values on each axis, but I get only half the ticks, and as a result half

Re: [Matplotlib-users] I really can't get into hist() barstacked

2009-07-22 Thread ms
Sandro Tosi ha scritto: I got only data values, nothing already computed (for whatever you mean by that), and I want to plot stacked bars with those values (either by row or by column). Ok, I see. It seems from your example that you already have the histogram computed no, I just have a

Re: [Matplotlib-users] Problems with autofmt_xdate()

2009-07-22 Thread Domenico Nappo
Hi there, I've upgraded to python 2.6, install all packages I need for that version (using matplotlib windows installer with gtk support found here: http://www.lfd.uci.edu/~gohlke/#pythonlibs ) and now everything seems to be ok. Thanks again. 2009/7/22 Domenico Nappo domenico.na...@gmail.com

[Matplotlib-users] imshow background and/or colour to alpha

2009-07-22 Thread massimo sandal
Hi, I am trying to do a plot where small images are used as markers at definite coordinate positions (just to make myself clear: I am trying to see how the shape of a polymer changes with different parameters, so I want little icons of the polymer placed at the x,y of the parameters). Doing that

[Matplotlib-users] problem with svn install

2009-07-22 Thread davide lasagna
Hi all, I have a problem with an svn install. I've followed the instruciont on mpl website, that is: $ svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib matplotlib $ cd matplotlib $ python setupegg.py develop Please note that i've run the last command with sudo

[Matplotlib-users] animate histogram

2009-07-22 Thread Alan G Isaac
Animating a line plot is well covered in the Cookbook: http://www.scipy.org/Cookbook/Matplotlib/Animations Can anyone offer a hint or two for animating a histogram? Thanks, Alan Isaac --

Re: [Matplotlib-users] problem with svn install

2009-07-22 Thread Gökhan SEVER
On Wed, Jul 22, 2009 at 11:47 AM, Jouni K. Seppänen j...@iki.fi wrote: davide lasagna lasagnadav...@gmail.com writes: ImportError: /home/davide/partizione/matplotlib/lib/matplotlib/_path.so: failed to map segment from shared object: Operation not permitted Could it be that i've

Re: [Matplotlib-users] PDF backend errors out; PNG works fine

2009-07-22 Thread John Kerenyi
Thank you for your response. Your response made me wonder how the script would operate in a non-graphic environment--I had tested it on a login node but not on a computing node. It appears that even though I have no need for any graphic display, the modules I am loading expect to have it

Re: [Matplotlib-users] PDF backend errors out; PNG works fine

2009-07-22 Thread Michael Droettboom
You can use the Agg or PDF backends to run matplotlib without display support: import matplotlib matplotlib.use(PDF) Cheers, Mike John Kerenyi wrote: Thank you for your response. Your response made me wonder how the script would operate in a non-graphic environment--I had tested it on a

[Matplotlib-users] SourceForge is telling me that there are no mirrors for the windows installer

2009-07-22 Thread Mike Waters
Is anyone else having this problem? Is there another website that I can try? -mike w. -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net

Re: [Matplotlib-users] problem with svn install (Davide Lasagna)

2009-07-22 Thread davide lasagna
Well, actually i'm using Ubuntu at work on a virtual machine, and the svn copy is in a partition mounted at boot by a line in /etc/fstab. If i remember correctly this filesystem is mounted with options users. I'm at home now, i'll try with the exec option tomorrow.

Re: [Matplotlib-users] SourceForge is telling me that there are no mirrors for the windows installer

2009-07-22 Thread Mike Waters
Never mind I found a mirror at http://www.lfd.uci.edu/~gohlke/download/matplotlib-0.98.5.3.win32-py2.6.zip -mike w. Mike Waters wrote: Is anyone else having this problem? Is there another website that I can try? -mike w.

[Matplotlib-users] Turning off the timezone (and more) in AutoDateFormatter

2009-07-22 Thread Christopher Barker
Hi all, I'm passing in None for the timezone in AutoDateFormatter. What I am getting is UTC, but what I want is nothing. Looking at the code, I see lines like: self._formatter = DateFormatter(%H:%M:%S %Z, self._tz) so my None is getting passed through. Then in DateFormatter, I see:

[Matplotlib-users] Two different definitions of autocorrelation?

2009-07-22 Thread Michael Lerner
Hi, I'm used to the following definition of autocorrelation: R(\tau) = \frac{(X_t - \mu)(X_{t+\tau}-\mu)}{\sigma^2} However, it looks like acorr is just giving me R(\tau) = \sum{X_t*X_{t+\tau}} Just specifying normed=True doesn't get the first formula. Is there some trivial option that I've

[Matplotlib-users] log plots do not work when using base 2

2009-07-22 Thread Barnette, Daniel W
I've written a python gui to matplotlib which allows the user to plot either cartesian, semi-log, or log-log plots. Log plots can be generated for typical base values except for base 2. Is this a bug, or is there some reason that matplotlib does not do log plots using base 2? Using base 2, the

[Matplotlib-users] waitfor/uiwait for show figure - wait until figure is closed - show next figure - wait until figure is closed - ...?

2009-07-22 Thread Jan Müller
Hi, basically I'm looking for something like 'waitfor' or 'uiwait' from the Matlab. I want to achieve is the following behavior: - show a figure with several subplot/images to the user - let the user click on some stuff to get coordinates, handles, ... - wait until the user has closed the

Re: [Matplotlib-users] ipython --pylab without namespace pollution?

2009-07-22 Thread Ryan May
On Wed, Jul 22, 2009 at 6:09 PM, Christopher Barker chris.bar...@noaa.govwrote: Hi folks, Does anyone know if there is a way to use ipython with the advantages of the -pylab option (separate gui thread, etc.), but without the whole pylab namespace getting sucked in? Put this in your

[Matplotlib-users] How to disable imshow blurring/interpolation

2009-07-22 Thread Johan Carlin
Hi all, I have just migrated from Matlab to Scipy. Matplotlib has been great so far. However, I have some trouble getting imshow to behave like Matlab's image function. If you do image(eye(8)) in matlab, you get this: http://www.flickr.com/photos/phineasgage/3746211714/ If you do

[Matplotlib-users] log base 2 plots

2009-07-22 Thread Barnette, Daniel W
I've written a python gui to matplotlib which allows the user to plot either cartesian, semi-log, or log-log plots. Log plots can be generated for typical base values except for base 2. Is this a bug, or is there some reason that matplotlib does not do log plots using base 2?

[Matplotlib-users] Help with plot_directive

2009-07-22 Thread dpo
Hello, I am running Matplotlib 0.98.6svn compiled from source on OSX and Sphinx 0.6.2. I am trying the following example to test plot_directive .. plot:: from numpy import linspace, sin import matplotlib.pylab as plt x = linspace(0.01,25, 1) plt.plot(x, sin(x)/x)

Re: [Matplotlib-users] memory leak with PyQt4 plus savefig or print_figure

2009-07-22 Thread Alexander Baker
Ralph, Perhaps time to migrate to Chaco API from Enthought? not sure if there is Ubuntu support yet however. Alex Baker http://code.enthought.com/chaco/ Ralf Gommers-2 wrote: Hi, I am working on a PyQt4 application with some embedded MPL figures, and am also trying to save some

[Matplotlib-users] bar charts can't handle datetimes with less than a day between datapoints?

2009-07-22 Thread Nick Seow
Hi, I'm worried that I'm doing something stupid, but can't quite spot it. testBarCharts() :- X axis in integers. Works fine. testBarChartsDTMonths() :- X axis in datetimes, 1 month between data points. Works fine testBarChartsDTHours() :- X axis in datetimes, 1 hour between data points. Bars

[Matplotlib-users] log base 2 plots

2009-07-22 Thread Barnette, Daniel W
I've written a python gui to matplotlib which allows the user to plot either cartesian, semi-log, or log-log plots. Log plots can be generated for typical base values except for base 2. Is this a bug, or is there some reason that matplotlib does not do log plots using base 2?

Re: [Matplotlib-users] ipython --pylab without namespace pollution?

2009-07-22 Thread John Hunter
On Wed, Jul 22, 2009 at 8:04 PM, Ryan Mayrma...@gmail.com wrote: On Wed, Jul 22, 2009 at 6:09 PM, Christopher Barker chris.bar...@noaa.gov wrote: Hi folks, Does anyone know if there is a way to use ipython with the advantages of the -pylab option (separate gui thread, etc.), but without the

Re: [Matplotlib-users] How to disable imshow blurring/interpolation

2009-07-22 Thread Eric Firing
Johan Carlin wrote: Hi all, I have just migrated from Matlab to Scipy. Matplotlib has been great so far. However, I have some trouble getting imshow to behave like Matlab's image function. If you do image(eye(8)) in matlab, you get this:

Re: [Matplotlib-users] ipython --pylab without namespace pollution?

2009-07-22 Thread Ryan May
On Wed, Jul 22, 2009 at 8:34 PM, John Hunter jdh2...@gmail.com wrote: On Wed, Jul 22, 2009 at 8:04 PM, Ryan Mayrma...@gmail.com wrote: On Wed, Jul 22, 2009 at 6:09 PM, Christopher Barker chris.bar...@noaa.gov wrote: Hi folks, Does anyone know if there is a way to use ipython with

Re: [Matplotlib-users] ipython --pylab without namespace pollution?

2009-07-22 Thread John Hunter
On Wed, Jul 22, 2009 at 8:50 PM, Ryan Mayrma...@gmail.com wrote: I'm willing to.  However, I just noticed that with just the pylab_import_all 0, you get the import numpy as np and import matplotlib.pyplot as plt automatically. Also, nicely, these don't show up when you type 'whos'.  This is

[Matplotlib-users] plotting 2d or 3d normal distribution pdf

2009-07-22 Thread per freem
hi all, i'm trying to find the function for the pdf of a multivariate normal pdf. i know that multivariate_normal can be used to sample from the multivariate normal distribution, but i just want to get the pdf for a given vector of means and a covariance matrix. is there a function to do this?

Re: [Matplotlib-users] bar charts can't handle datetimes with less than a day between datapoints?

2009-07-22 Thread Nick Seow
Ah, thanks! On Thu, Jul 23, 2009 at 12:18 PM, John Hunterjdh2...@gmail.com wrote: bar width or 1.0 corresponds to 1 day.  The default width to the bar command is 0.8, which is too thin for months, just right for days, and too wide for hours.  Eg, for hours do  bar(x, y, width=0.8*1/24.)  #