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

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] 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 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 make this work

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

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

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 transparency at

[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

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

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

[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

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

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

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 put

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

[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