[Matplotlib-users] contour's polygons

2010-07-28 Thread Phil Rosenfield
Hi, I'm 6 months into learning python and haven't been able to find a way to do this, so I hope you don't mind a basic question. I'd like to use the polygons contour makes but I can't figure out how to get them from ContourSet. Any examples or links to helpful information would be excellent.

[Matplotlib-users] HTML area for a matplotlib picture

2010-07-28 Thread Mario Laforest 2
Hello, I am trying to create clickable images for HTML. For transforming the coordinates in the examples I found they are using the function seq_x_y(). But that function is not available anymore. How can I get transform the coordinates with the newer versions of Matplotlib? Thanks Mario

Re: [Matplotlib-users] Bypass keyboard navigation

2010-07-28 Thread David Mashburn
Thanks so much guys! This finally worked! f=gcf() for i in f.canvas.callbacks.callbacks: if i=='key_press_event': f.canvas.mpl_disconnect(f.canvas.callbacks.callbacks[i].keys()[0]) Thanks! -David Aha! I thought you were using 1.0. For 1.0, these things are rc settings; I had

Re: [Matplotlib-users] HTML area for a matplotlib picture

2010-07-28 Thread John Hunter
On Wed, Jul 28, 2010 at 8:35 AM, Mario Laforest 2 mario.lafor...@ubisoft.com wrote: Hello, I am trying to create clickable images for HTML.  For transforming the coordinates  in the examples I found they are using the function seq_x_y(). But that function is not available anymore. How

Re: [Matplotlib-users] Documentation error/bug?

2010-07-28 Thread Benjamin Root
On Tue, Jul 27, 2010 at 1:31 PM, Friedrich Romstedt friedrichromst...@gmail.com wrote: 2010/7/26 Benjamin Root ben.r...@ou.edu: After some reading of sphinx documentation, it appears to be a bug with sphinx (or actually, smartypants) because it should not be doing this sort of

Re: [Matplotlib-users] Saving as eps file shifts image?

2010-07-28 Thread Jenna L.
That looks fine to me too, but if you plot that as one subplot in a 5x5 array of subplots or more, then you can see the shift I am talking about in the eps file. Example: import matplotlib.pyplot as plt import numpy as np arr = np.zeros((11, 11), dtype=d) arr[3,3]=1 plt.figure(1)

Re: [Matplotlib-users] contour's polygons

2010-07-28 Thread Eric Firing
On 07/27/2010 02:31 PM, Phil Rosenfield wrote: Hi, I'm 6 months into learning python and haven't been able to find a way to do this, so I hope you don't mind a basic question. I'd like to use the polygons contour makes but I can't figure out how to get them from ContourSet. Any examples or

Re: [Matplotlib-users] Documentation error/bug?

2010-07-28 Thread Eric Firing
On 07/28/2010 05:48 AM, Benjamin Root wrote: On Tue, Jul 27, 2010 at 1:31 PM, Friedrich Romstedt friedrichromst...@gmail.com mailto:friedrichromst...@gmail.com wrote: 2010/7/26 Benjamin Root ben.r...@ou.edu mailto:ben.r...@ou.edu: After some reading of sphinx documentation, it

[Matplotlib-users] hz to khz

2010-07-28 Thread Waléria Antunes David
Hello all, Well, my problem is ... My current code is as follow bellow: http://pastebin.com/7p2N5d64 and generates following image, the x-axis of the graph shows values em Hz, values that range from 3000 to 3400, my image is attached. But, i need the x-axis values is displayed in Khz, ranging

Re: [Matplotlib-users] hz to khz

2010-07-28 Thread Angus McMorland
On 28 July 2010 15:25, Waléria Antunes David waleriantu...@gmail.com wrote: Hello all, Well, my problem is ... My current code is as follow bellow: http://pastebin.com/7p2N5d64 Hi Waléria, We can't easily fix your problem without knowing what data f and Sserie contain. It would help us to

Re: [Matplotlib-users] hz to khz

2010-07-28 Thread Benjamin Root
On Wed, Jul 28, 2010 at 2:39 PM, Angus McMorland amcm...@gmail.com wrote: On 28 July 2010 15:25, Waléria Antunes David waleriantu...@gmail.com wrote: Hello all, Well, my problem is ... My current code is as follow bellow: http://pastebin.com/7p2N5d64 Hi Waléria, We can't easily fix

Re: [Matplotlib-users] Arrow in log space

2010-07-28 Thread Benjamin Root
On Wed, Jul 28, 2010 at 3:56 PM, Thomas Robitaille thomas.robitai...@gmail.com wrote: Hi, How does one plot an arrow in a log log plot? In the following example, I can't get the arrow head, regardless of what value I use for the head width: import matplotlib as mpl mpl.use('Agg') import

Re: [Matplotlib-users] Confusion Matrix

2010-07-28 Thread Simon Friedberger
On 18:32 Sun 18.07.10, Friedrich Romstedt wrote: Try to add: ax.set_xticks(range(0, 10)) ax.set_yticks(range(0, 10)) before the imshow call. For some reason it must happen before the imshow call and not after, else the yscaling will change (I don't understand this). Thanks for this tip.

Re: [Matplotlib-users] Saving as eps file shifts image?

2010-07-28 Thread Jae-Joon Lee
On Thu, Jul 29, 2010 at 1:17 AM, Jenna L. je...@astro.columbia.edu wrote: That looks fine to me too, but if you plot that as one subplot in a 5x5 array of subplots or more, then you can see the shift I am talking about in the eps file.  Example: I still don't see it (a capture of my eps output

Re: [Matplotlib-users] Saving as eps file shifts image?

2010-07-28 Thread Jenna L.
Hmm that is not what my output looks like. Attached is a capture of my output. I am using matplotlib version 0.98.5.3 http://old.nabble.com/file/p29291928/shift_subplot_test.png shift_subplot_test.png Jae-Joon Lee wrote: On Thu, Jul 29, 2010 at 1:17 AM, Jenna L.

Re: [Matplotlib-users] hz to khz

2010-07-28 Thread Samuel Teixeira Santos
I think her problem is something like that His values on X Axis is a range between 3000 to 3400 without this division by 1000.0 his graphic processing normally but instead on X axis to show the range between 3000 to 3400 she needs to show this values transform in Hz (I think) that's why the

[Matplotlib-users] Contour plot of non-uniformly sampled data

2010-07-28 Thread Nikolaus Rath
Hello, What is the best way to generate a contour plot from a set of non-uniformly sampled data (i.e., the datapoints do not lie on the points of a rectangular grid but are randomly distributed)? Thanks, -Nikolaus -- »Time flies like an arrow, fruit flies like a Banana.« PGP

Re: [Matplotlib-users] Contour plot of non-uniformly sampled data

2010-07-28 Thread Jeff Whitaker
On 7/28/10 8:32 PM, Nikolaus Rath wrote: Hello, What is the best way to generate a contour plot from a set of non-uniformly sampled data (i.e., the datapoints do not lie on the points of a rectangular grid but are randomly distributed)? Thanks, -Nikolaus Nikolaus: You can