Re: [Matplotlib-users] problem with svn install

2009-07-22 Thread davide lasagna
Yes, That did it. The partition had to be mounted with option execin /etc/fstab!! Thanks. Cheers Davide -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge

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 Hunter 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.)  # width is 0.8 h

[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? th

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

2009-07-22 Thread John Hunter
On Tue, Jul 21, 2009 at 8:00 PM, Nick Seow wrote: > 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

Re: [Matplotlib-users] log base 2 plots

2009-07-22 Thread John Hunter
On Tue, Jul 21, 2009 at 3:32 PM, Barnette, Daniel W wrote: > 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 >

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

2009-07-22 Thread John Hunter
On Wed, Jul 22, 2009 at 8:50 PM, Ryan May 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 with ipython 0

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 wrote: > On Wed, Jul 22, 2009 at 8:04 PM, Ryan May 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

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: > > http://www.flickr.com/photos/phineasga

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

2009-07-22 Thread John Hunter
On Wed, Jul 22, 2009 at 8:04 PM, Ryan May wrote: > On Wed, Jul 22, 2009 at 6:09 PM, Christopher Barker > 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 whole >> pylab namespace

[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] 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 seem

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 f

[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) plt.sho

[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] 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 imshow(eye(8))

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 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 whole > pylab namespace getting sucked in? Put this in your ~/.ipython/ipythonrc:

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

2009-07-22 Thread Robert Kern
On 2009-07-22 18:09, Christopher Barker 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 whole > pylab namespace getting sucked in? > > I love ipython pylab mode, but like to use namespac

[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 window

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

2009-07-22 Thread Christopher Barker
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? I love ipython pylab mode, but like to use namespaces to keep things clean. thanks, -Chris -- Christop

[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

Re: [Matplotlib-users] griddata returns nan

2009-07-22 Thread Jeff Whitaker
plankton wrote: > Greetings all, > > I rotate a vector field and than I tried to interpolate it to a new grid > using griddata. > > CODE: > > x_grid_unique = unique(x_grid) > y_grid_unique = unique(y_grid) > x_meshgrid, y_meshgrid = meshgrid(x_grid_unique, y_grid_unique)

[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] 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:

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. > > -

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.

[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 https://lists.

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 o

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 nonethe

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 wrote: > davide lasagna 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 installed in the wrong direct

[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 Jouni K . Seppänen
davide lasagna 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 installed in the wrong directory? If yes how can > i cope with this? Apparently this could be caused b

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

2009-07-22 Thread Jouni K . Seppänen
"John Kerenyi" writes: > File > "/soft/python/lib/python2.6/site-packages/matplotlib/backends/backend_pd > f.py", line 44, in > from matplotlib import ttconv > ImportError: > /soft/python/lib/python2.6/site-packages/matplotlib/ttconv.so: undefined > symbol: _ZTVSt19basic_ostringstreamIcSt1

[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 a

[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 tha

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

2009-07-22 Thread John Kerenyi
Hello all, I am a relatively new user of matplotlib but have come a long way in these last couple months. I developed some Python graph scripts on my Windows machine, which reports matplotlib version 0.98.5.2 (installed via Python(x,y)). These scripts write either .png or .pdf files, depending on

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 > > > 2009/7/21 John Hunte

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

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 hal

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, ms 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? (rela

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

2009-07-22 Thread Sandro Tosi
On Tue, Jul 21, 2009 at 18:00, Sandro Tosi wrote: > for example, let's say I want to plot this series > > s1 = 2,3,6,3,1 > s2 = 1,2,2,4,1 > s3 = 4,1,0,3,7 > > what's the format of data to pass to hist() ? by row? by column? Just to clarify: from the above lists of values, I'm expecting to draw som

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

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

2009-07-22 Thread Domenico Nappo
2009/7/21 John Hunter > > > I have the suspect that matplotlib windows support simply doesn't exist:) > > I'll try prepackaged windows distributions like EPD or Python(x,y) and > hope > > this will solve this issue... > > > I'm pretty sure they do not package mpl with the gtk backend, but > Chris

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