[Matplotlib-users] ginput changes axes limits

2008-08-06 Thread Elfnor
In the following code the displayed image is initially displayed with axes going from 0 to 103, ie there is no white space between the image and the axes. After the first ginput mouse click the axes limits change to -20 to 120 with white space between the image and the axes. This is a little dis

Re: [Matplotlib-users] Installation woes: phantom Numpy version?

2008-08-06 Thread John Hunter
On Wed, Aug 6, 2008 at 5:02 PM, Richard Lawrence <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello everyone, > > I've had a heck of a time trying to install matplotlib. I've tried > installing both from svn and from the pre-built 0.98.3 egg with no > success.

[Matplotlib-users] Installation woes: phantom Numpy version?

2008-08-06 Thread Richard Lawrence
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello everyone, I've had a heck of a time trying to install matplotlib. I've tried installing both from svn and from the pre-built 0.98.3 egg with no success. Any tips would be appreciated. My setup is: Mac Pro PPC G5, OS X 10.5.4 Python 2.5.1 (App

Re: [Matplotlib-users] Using matplotlib in Qt4/Qt4 Designer

2008-08-06 Thread B Clowers
Ewald, Here is a ui file, its conversion, matplotlib Qt widget and the associated main program to give you and example of how to use matplotlib (0.98.3) and Qt4 Designer.  Have fun. Brian --- On Wed, 8/6/08, Ewald Zietsman <[EMAIL PROTECTED]> wrote: From: Ewald Zietsman <[EMAIL PROTECTED]> Sub

Re: [Matplotlib-users] Yticks off?

2008-08-06 Thread Ben Axelrod
Try this: self.axes.set_yticks([]) From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of "Jonathan Hayward, http://JonathansCorner.com"; Sent: Wednesday, August 06, 2008 4:38 PM To: Matplotlib Subject: [Matplotlib-users] Yticks off? I am making a b

Re: [Matplotlib-users] Using OGR/GDAL objects with Basemap

2008-08-06 Thread Jeff Whitaker
Zane Selvans wrote: > Oh, great! I'm a dunce. I should really go through and put all the > Basemap examples into the Matplotlib cookbook so they come up when I > search for them on the web. Er, when somebody else searches for them > on the web... since I'd be familiar with all of them if I pu

Re: [Matplotlib-users] Using matplotlib in Qt4/Qt4 Designer

2008-08-06 Thread B Clowers
Ewald, If you look at the following link it may help you get started: http://code.google.com/p/subplot/source/browse/branches/mzViewer/PyMZViewer/mpl_custom_widget.py What you need to do is make a ui with designer and then place a widget where ever you'd like.  From there make sure you right cl

Re: [Matplotlib-users] Using OGR/GDAL objects with Basemap

2008-08-06 Thread Zane Selvans
Oh, great! I'm a dunce. I should really go through and put all the Basemap examples into the Matplotlib cookbook so they come up when I search for them on the web. Er, when somebody else searches for them on the web... since I'd be familiar with all of them if I put them up! Is there some

Re: [Matplotlib-users] Plot a Dictionary, time and value

2008-08-06 Thread Tim Michelsen
Hello, excuse the late reply. But you may be interested in the timeseries scikit: http://scipy.org/scipy/scikits/wiki/TimeSeries http://www.scipy.org/Cookbook/TimeSeries/FAQ Have success! Kind regards, Timmie - This SF.Net

[Matplotlib-users] Yticks off?

2008-08-06 Thread "Jonathan Hayward, http://JonathansCorner.com"
I am making a bar chart and want to turn off (visible) yticks. How can I remove, hide, color with white (the background color), etc., the yticks? Thanks, -- -- Jonathan Hayward, [EMAIL PROTECTED] ** To see an award-winning website with stories, essays, artwork, ** games, and a four-dimensional m

Re: [Matplotlib-users] Using OGR/GDAL objects with Basemap

2008-08-06 Thread Jeff Whitaker
Zane Selvans wrote: > Has anyone here ever used Basemap to display datasets/layers/features > created using the OGR/GDAL libraries (http://www.gdal.org/)? They're > SWIG wrappers, not pure Python, so I could see integration maybe being > a pain. Just curious if there was anything out there

[Matplotlib-users] Using OGR/GDAL objects with Basemap

2008-08-06 Thread Zane Selvans
Has anyone here ever used Basemap to display datasets/layers/features created using the OGR/GDAL libraries (http://www.gdal.org/)? They're SWIG wrappers, not pure Python, so I could see integration maybe being a pain. Just curious if there was anything out there to build on already... Th

[Matplotlib-users] how to end manually positioning contour labels?

2008-08-06 Thread Mark Bakker
I just played with putting contour labels on manually (and interactively). It works fine by just left clicking on the spot where you want a label. But how do you end this feature? The doc string says: right click, or potentially click both mouse buttons together. Neither works for me on win32, m

[Matplotlib-users] Fwd: Moving legend with mouse?

2008-08-06 Thread Anthony Floyd
Oops, forgot to cc the list... -- Forwarded message -- From: Anthony Floyd <[EMAIL PROTECTED]> Date: Wed, Aug 6, 2008 at 12:28 PM Subject: Re: [Matplotlib-users] Moving legend with mouse? To: Søren Nielsen <[EMAIL PROTECTED]> On Fri, Aug 1, 2008 at 6:10 AM, Søren Nielsen <[EMAIL

Re: [Matplotlib-users] Filled contour transparency issue

2008-08-06 Thread John Hunter
On Wed, Aug 6, 2008 at 1:28 PM, peter websdell <[EMAIL PROTECTED]> wrote: > No michael, that is what I was suggesting. Shame it doesn't work. > > I'm looking at using Enthoughts Chaco to do it. It's takes a bit more to get > it doing what I want though, and I don't know if it does alpha transparenc

Re: [Matplotlib-users] Filled contour transparency issue

2008-08-06 Thread peter websdell
No michael, that is what I was suggesting. Shame it doesn't work. I'm looking at using Enthoughts Chaco to do it. It's takes a bit more to get it doing what I want though, and I don't know if it does alpha transparency at all. Thanks for your help. Pete 2008/8/6 Michael Droettboom <[EMAIL PROTE

Re: [Matplotlib-users] Filled contour transparency issue

2008-08-06 Thread Michael Droettboom
It doesn't seem to matter whether the filled contours are drawn with edges or not -- the cuts are still visible because they're caused by over-drawing of the fill. (You can set linewidth=0 to try this.) But maybe I misunderstand your question. Cheers, Mike kippertoffee wrote: > Thank you for

Re: [Matplotlib-users] Filled contour transparency issue

2008-08-06 Thread kippertoffee
Thank you for your reply Michael. Is it possible to make the lines in the contourf plot completely transparent using an alpha setting? That would make a reasonable workaround as I intend to overlay black contours anyway. I've had a look at the source but it is way beyond me; I am a mere dabbler

Re: [Matplotlib-users] plotting array with inf

2008-08-06 Thread Pierre GM
On Wednesday 06 August 2008 09:24:18 Michael Droettboom wrote: > (I don't know if the > new masked arrays have a C API we could use -- the old ones apparently > didn't.) They don't. I thought about it before, but decided to forget about it until I could find a job where I could learn C and foc

Re: [Matplotlib-users] get a google map image into matplotlib?

2008-08-06 Thread Jose Gómez-Dans
On Tuesday 05 August 2008 22:25:30 Mark Bakker wrote: > Can we do the same? I am sure we can (not sure we want, as Google has been > somewhat difficult to people writing scripts to manipulate images from > google maps). I tried doing something similar to this a while ago. You can use gdal to point

Re: [Matplotlib-users] plotting array with inf

2008-08-06 Thread Michael Droettboom
Eric Firing wrote: > John Hunter wrote: > >> On Tue, Aug 5, 2008 at 3:46 PM, Mark Bakker <[EMAIL PROTECTED]> wrote: >> >> >>> But if I replace the Inf by a nan: y[2] = np.nan, then it plots fine. >>> >>> I know, I know, I can do this with masked arrays, but it cannot be that hard >>> to mak

Re: [Matplotlib-users] Filled contour transparency issue

2008-08-06 Thread Michael Droettboom
This is a known issue with the contouring code. It's borrowed from an earlier plotting package called GIST, and assumes that the renderer can not handle compound polygons (for example, donut-shaped, with both an inner and outer edge). So instead, it draws "cuts" that go from the inner to the

Re: [Matplotlib-users] plotting array with inf

2008-08-06 Thread Alan G Isaac
On Tue, 5 Aug 2008, John Hunter apparently wrote: > Although intuitively I think of inf as very different from nan, my > default is to go with matlab like behavior in the absence > of compelling a argument otherwise. gnuplot also ignores them. (I am not arguing this is the correct behavior; just

Re: [Matplotlib-users] bug in labeling contour lines

2008-08-06 Thread Mark Bakker
A little follow-up. When I use keyword argument inline=False, it doesn't remove the lines without a label. So it seems that when using inline=True the unlabeled contours get a white box, but no label (because it doesn't fit) which essentially removes the entire contour. Mark On Wed, Aug 6, 2008

[Matplotlib-users] Filled contour transparency issue

2008-08-06 Thread kippertoffee
Hello, I am attempting to overlay a filled contour over a custom image. I have managed to get something basic working, but i have encountered a problem: When the contourf plot is set to semi-transparent there are visible lines joining the bottom of the plot and the filled contour edges. I have

[Matplotlib-users] bug in labeling contour lines

2008-08-06 Thread Mark Bakker
Hello list - There seems to be a bug in labeling contour lines. When I call clabel, it removes all contours that are not labeled (because the label doesn't fit on the section of contour, I presume). This seems like a bug to me (or a really odd feature). Easy example: >>> x,y = meshgrid( linspace

Re: [Matplotlib-users] How to: manually select contour label location

2008-08-06 Thread Mark Bakker
Never mind, I found it. The solution is: cobj = contour(x,y,z) cobj.clabel(manual=True) How nice! Mark On Wed, Aug 6, 2008 at 10:05 AM, Mark Bakker <[EMAIL PROTECTED]> wrote: > Hello list - > > I read that in 0.98.3 we can manually select contour label locations! > > I searched around, but co

Re: [Matplotlib-users] can we set markerspacing?

2008-08-06 Thread Manuel Metz
Mark Bakker wrote: > Can we set the markerspacing in mpl? > > If I do > > plot( linspace(0,10,100), 'o' ) You can try the following approach: First plot the line and then plot the markers separately (and set colors). x = linspace(0,10,100) y = x plot(x, y, '-') plot(x[::10], y[::10], linestyle

[Matplotlib-users] can we set markerspacing?

2008-08-06 Thread Mark Bakker
Can we set the markerspacing in mpl? If I do plot( linspace(0,10,100), 'o' ) I get 100 markers. What if I want to plot every tenth marker? Or better even, what if I want to have a certain spacing between markers. I know how to work around this, of course (just plot every tenth point), but I was

[Matplotlib-users] How to: manually select contour label location

2008-08-06 Thread Mark Bakker
Hello list - I read that in 0.98.3 we can manually select contour label locations! I searched around, but couldn't find any instructions. Can anybody point me in the right direction? Thanks, Mark - This SF.Net email is spon

Re: [Matplotlib-users] plotting array with inf

2008-08-06 Thread Mark Bakker
Thanks for stepping up to the plate, Eric. I was asleep on this side of the ocean, so I didn't join in the discussion. >From a functionality point of view, it seems to be a good idea to me not to plot nans (that would actually be impossible) and not to plot infs. The latter are indeed different t