Re: [Matplotlib-users] Confusion Matrix

2010-07-28 Thread Matthieu Brucher
Hi, In scikits.learn, there is a confusion matrix and in the samples, there are several plots (scikit-learn.sf.net). Matthieu 2010/7/16 Simon Friedberger : > Hello List. > > I'm trying to plot a confusion matrix and I got this far: > http://paste.pocoo.org/show/238332/ > > Basically what I still

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: Y

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

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 divi

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. > wrote: >> That loo

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. 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 is attached). Can you

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 th

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')

[Matplotlib-users] Arrow in log space

2010-07-28 Thread Thomas Robitaille
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 matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(1,1,1) ax.arrow(0.2,0.2,0.5,

Re: [Matplotlib-users] hz to khz

2010-07-28 Thread Benjamin Root
On Wed, Jul 28, 2010 at 2:39 PM, Angus McMorland wrote: > On 28 July 2010 15:25, Waléria Antunes David > 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 knowin

Re: [Matplotlib-users] hz to khz

2010-07-28 Thread Angus McMorland
On 28 July 2010 15:25, Waléria Antunes David 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 help you if you could

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

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 > mailto:friedrichromst...@gmail.com>> wrote: > > 2010/7/26 Benjamin Root mailto:ben.r...@ou.edu>>: > > After some reading of sphinx documentation, it appears to be a > bug with > >

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 exampl

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) plt.subplot(

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 : > > 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 interpretation

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 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 can I get trans

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 n

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

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