Re: [Matplotlib-users] mplot3d - ploting 3d triangular mesh model - need help

2010-11-11 Thread Ian Thomas
On 11 November 2010 12:41, isolat wrote: > > hi all, > please is there any one can tell me if it's possible in mplot3d to plot 3d > triangular mesh model with a colormap different from the Z variable. I > don't find example in tutorial for this. > thanks. > No, this is not possible. Support fo

Re: [Matplotlib-users] python v ipython problem in imshow()

2010-11-11 Thread Garry Willgoose
Michiel, After some further digging I think the Mac OSX backend is probably OK. I have tried setting the backend just before I use pylab (several thousand lines into the code after setting up the GUI and lots of other stuff) the first time with code as below def display_2d(): global ma

Re: [Matplotlib-users] python v ipython problem in imshow()

2010-11-11 Thread Michiel de Hoon
Thanks for your reply. Just to make sure I understand correctly: Do you still think that there is a bug in the Mac OS X backend? Or does the bug only appear with wx? Best, --Michiel. --- On Thu, 11/11/10, Garry Willgoose wrote: > From: Garry Willgoose > Subject: Re: [Matplotlib-users] python

[Matplotlib-users] RectangleSelector Issue

2010-11-11 Thread Martin Bures
I am having a little issue with the matplotlib.widgets RectangleSelector. The behavior is that the first time I try to select a region, no rectangle draws. All subsequent uses work correctly. Here is how I am calling: if self.zoomMode: if self.canvas.widgetlock.locked():

Re: [Matplotlib-users] Mac OSX backend

2010-11-11 Thread Michiel de Hoon
For this example, I am finding the exact same behavior with the Mac OS X backend as with the gtkcairo and gtkagg backends (on Mac OS X and Cygwin). If this is a bug, then which backend can we use as an example of the correct behavior for this code? Best, --Michiel --- On Thu, 11/11/10, John H

Re: [Matplotlib-users] basemap map center issue

2010-11-11 Thread Jeff Whitaker
On 11/11/10 3:33 AM, Andres Luhamaa wrote: > Hi, > I have a problem creating map in "aeqd" projection. The problem seems > to be that the map center, given by arguments lon_0 and lat_0 is > taking into account only full part of the coordinate. If I want to get > map center at coordinates lon_0=2

Re: [Matplotlib-users] Axes labels crooked using mplot3d in WX

2010-11-11 Thread James Davidheiser
From: ben.v.r...@gmail.com [mailto:ben.v.r...@gmail.com] On Behalf Of Benjamin Root Sent: Thursday, November 11, 2010 12:20 PM To: James Davidheiser; Matplotlib Users Subject: Re: [Matplotlib-users] Axes labels crooked using mplot3d in WX On Thu, Nov 11, 2010 at 12:20 PM, Benjamin Root mailto:be

Re: [Matplotlib-users] Axes labels crooked using mplot3d in WX

2010-11-11 Thread Benjamin Root
On Thu, Nov 11, 2010 at 3:55 PM, James Davidheiser < jdavidhei...@unisynmedical.com> wrote: > *From:* ben.v.r...@gmail.com [mailto:ben.v.r...@gmail.com] *On Behalf Of > *Benjamin Root > *Sent:* Thursday, November 11, 2010 12:20 PM > *To:* James Davidheiser; Matplotlib Users > > *Subject:* Re: [Ma

Re: [Matplotlib-users] basemap map center issue

2010-11-11 Thread Benjamin Root
On Thu, Nov 11, 2010 at 8:28 AM, andres luhamaa wrote: > Yes, Your script reproduced the problem. > > Regards, > Andres > > On 11.11.2010 16:03, Scott Sinclair wrote: > > A good start is always a self contained script illustrating the problem. > > > > I don't have GTKAgg installed here to try. Doe

Re: [Matplotlib-users] Axes labels crooked using mplot3d in WX

2010-11-11 Thread Benjamin Root
On Thu, Nov 11, 2010 at 12:20 PM, Benjamin Root wrote: > On Thu, Nov 11, 2010 at 9:31 AM, James Davidheiser < > jdavidhei...@unisynmedical.com> wrote: > >> >> >> >> >> *From:* ben.v.r...@gmail.com [mailto:ben.v.r...@gmail.com] *On Behalf Of >> *Benjamin Root >> *Sent:* Thursday, November 11, 2010

Re: [Matplotlib-users] Axes labels crooked using mplot3d in WX

2010-11-11 Thread Benjamin Root
On Thu, Nov 11, 2010 at 8:49 AM, James Davidheiser < jdavidhei...@unisynmedical.com> wrote: > *From:* ben.v.r...@gmail.com [mailto:ben.v.r...@gmail.com] *On Behalf Of > *Benjamin Root > > > > On Wed, Nov 10, 2010 at 3:12 PM, unij > wrote: > > > I'm trying to use mplot3d in a Wx based application

Re: [Matplotlib-users] Axes labels crooked using mplot3d in WX

2010-11-11 Thread James Davidheiser
From: ben.v.r...@gmail.com [mailto:ben.v.r...@gmail.com] On Behalf Of Benjamin Root On Wed, Nov 10, 2010 at 3:12 PM, unij mailto:jdavidhei...@unisynmedical.com>> wrote: I'm trying to use mplot3d in a Wx based application, and most things seem to be working fine. The one issue that keeps tripp

Re: [Matplotlib-users] basemap map center issue

2010-11-11 Thread andres luhamaa
Yes, Your script reproduced the problem. Regards, Andres On 11.11.2010 16:03, Scott Sinclair wrote: > A good start is always a self contained script illustrating the problem. > > I don't have GTKAgg installed here to try. Does the script below > reproduce your problem? If so, maybe someone else c

Re: [Matplotlib-users] tick formatter - floating axis

2010-11-11 Thread Stefan Mauerberger
Hi JJ, thanks a lot for your Answer. Now I have understand how this works and created my one formatter: class MyFormatter(object): def __init__(self, fmt='$%f$'): self.fmt = fmt def __call__(self, direction, factor, values): return [self.fmt % v for v in values]

Re: [Matplotlib-users] basemap map center issue

2010-11-11 Thread Scott Sinclair
On 11 November 2010 14:59, andres luhamaa wrote: > Thanks, it really works with QT4Agg! > Still, I think it would be better, if it worked with default GTKAgg as > well. But my understanging of the whole matplotlib code is probably too > general to submit a bug report somewhere. A good start is al

Re: [Matplotlib-users] basemap map center issue

2010-11-11 Thread andres luhamaa
Thanks, it really works with QT4Agg! Still, I think it would be better, if it worked with default GTKAgg as well. But my understanging of the whole matplotlib code is probably too general to submit a bug report somewhere. Regards, Andres On 11.11.2010 14:12, Scott Sinclair wrote: > Your script

Re: [Matplotlib-users] colormap plot

2010-11-11 Thread isolat
Hi, for 2d you can use basic contourf of maptplotlib, or 3d with contourf3D(X,Y,Z) by using the mplot3d tookit. see tutorial : 2d : http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.contourf 3d : http://matplotlib.sourceforge.net/mpl_toolkits/mplot3d/tutorial.html Dani

Re: [Matplotlib-users] Mac OSX backend

2010-11-11 Thread mdekauwe
OK thanks so perhaps I should also try another backend then? What do other mac users opt for? ps. that works by the way. John Hunter-4 wrote: > > On Thu, Nov 11, 2010 at 6:32 AM, mdekauwe wrote: >> >> It isn't any one script, if you did >> >> import numpy as np >> import matplotlib.pyplot as

[Matplotlib-users] mplot3d - ploting 3d triangular mesh model - need help

2010-11-11 Thread isolat
hi all, please is there any one can tell me if it's possible in mplot3d to plot 3d triangular mesh model with a colormap different from the Z variable. I don't find example in tutorial for this. thanks. -- View this message in context: http://old.nabble.com/mplot3d---ploting-3d-triangular-mesh

[Matplotlib-users] Linecollection, Dates on X-axis

2010-11-11 Thread Tim--
Hello! I have written a program that plots values over Time, because it has to be done(plotted) fast the date_plot didnt fit the bill so i moved over to Linecollection and it works like a charm. The only problem i have now is that i dont know any easy way to get dates on the x-axis. Any ideas? --

Re: [Matplotlib-users] Mac OSX backend

2010-11-11 Thread John Hunter
On Thu, Nov 11, 2010 at 6:32 AM, mdekauwe wrote: > > It isn't any one script, if you did > > import numpy as np > import matplotlib.pyplot as plt > x = np.arange(10) > for i in xrange(10): >    plt.plot(x) >    plt.savefig('x.png') > > it pops up the plot window even though I didn't ask it to. I d

Re: [Matplotlib-users] Mac OSX backend

2010-11-11 Thread mdekauwe
It isn't any one script, if you did import numpy as np import matplotlib.pyplot as plt x = np.arange(10) for i in xrange(10): plt.plot(x) plt.savefig('x.png') it pops up the plot window even though I didn't ask it to. I don't get this functionality on a non mac system. So I wonder if it

Re: [Matplotlib-users] basemap map center issue

2010-11-11 Thread Scott Sinclair
On 11 November 2010 12:33, Andres Luhamaa wrote: > I have a problem creating map in "aeqd" projection. The problem seems to be > that the map center, given by arguments lon_0 and lat_0 is taking into > account only full part of the coordinate. If I want to get map center at > coordinates lon_0=25.

Re: [Matplotlib-users] Mac OSX backend

2010-11-11 Thread John Hunter
On Nov 11, 2010, at 4:15 AM, mdekauwe wrote: > > Hi, > I have my backend set up in my .matplotlib/matplotlibrc file as: > > backend : MacOSX > > However if I run a script which does multiple plots and I don't ask the > script to display the plots (i.e. not imshow()), I still get blank

[Matplotlib-users] basemap map center issue

2010-11-11 Thread Andres Luhamaa
Hi, I have a problem creating map in "aeqd" projection. The problem seems to be that the map center, given by arguments lon_0 and lat_0 is taking into account only full part of the coordinate. If I want to get map center at coordinates lon_0=25.5 and lat_0=58.5, I get center in lon_0=25 and lat_0=5

[Matplotlib-users] Mac OSX backend

2010-11-11 Thread mdekauwe
Hi, I have my backend set up in my .matplotlib/matplotlibrc file as: backend : MacOSX However if I run a script which does multiple plots and I don't ask the script to display the plots (i.e. not imshow()), I still get blank windows popping up. Does anyone else have this problem? Any soluti