[Matplotlib-users] (no subject)

2012-06-13 Thread R. O'Gara
http://suzanne.hawson.net/wp-sys/wp-content/themes/renownedmint/googlemail.html-- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT m

Re: [Matplotlib-users] Scatter legend woes.

2012-06-13 Thread Steven Boada
The gca().collections.set_label('label') works great. Admittedly, I'm not sure why it works. I'm not that great with the collections stuff. But thanks! S On 06/13/2012 03:22 PM, Mike Kaufman wrote: > On 6/13/12 4:06 PM, Steven Boada wrote: >> Well I am doing a lot more than this simple example

Re: [Matplotlib-users] Scatter legend woes.

2012-06-13 Thread Mike Kaufman
On 6/13/12 4:06 PM, Steven Boada wrote: > > Well I am doing a lot more than this simple example shows. Point is that > there are nine different points each with their own legend entry. > > I could put it all out of the for loops, but it is all already written, > and I'd rather just fix the legend a

Re: [Matplotlib-users] Scatter legend woes.

2012-06-13 Thread Paul Kuin
I have a routine where I start outside the loop with and empty sequence > leg = [] then add at each iteration the label > leg.append('mylabel') then call legend with the sequence at the end > legend(leg) I think I once truncated the list and got part only > legend(leg[:2]) It depends on what y

Re: [Matplotlib-users] Scatter legend woes.

2012-06-13 Thread Steven Boada
Well I am doing a lot more than this simple example shows. Point is that there are nine different points each with their own legend entry. I could put it all out of the for loops, but it is all already written, and I'd rather just fix the legend at the end than move sections of the code arou

[Matplotlib-users] using datetime on a pcolor plot

2012-06-13 Thread Timothy Duly
Hello, I am trying to make a simple pcolor plot with a datetime on the x-axis. I am able to get a time label on the x-axis fine with a regular plot command, but it doesn't appear to work if you use pcolor. This simple example below shows that it does not work. Does anyone have any idea as to wh

Re: [Matplotlib-users] Scatter legend woes.

2012-06-13 Thread Mike Kaufman
On 6/13/12 3:23 PM, Steven Boada wrote: > Whoops, I forgot to change the subject. Sorry list. > > List, > > I'm making a scatter plot using a for loop. Here's a simple example.. > > for i in range(10): > x=rand() > y=rand() > scatter(x,y,label='point') > > legend() > show() > > >

[Matplotlib-users] Scatter legend woes.

2012-06-13 Thread Steven Boada
Whoops, I forgot to change the subject. Sorry list. List, I'm making a scatter plot using a for loop. Here's a simple example.. for i in range(10): x=rand() y=rand() scatter(x,y,label='point') legend() show() When you do this, you get a legend entry for every single point. In t

Re: [Matplotlib-users] Duplicate Ticks

2012-06-13 Thread Benjamin Root
On Wed, Jun 13, 2012 at 10:46 AM, Peter Würtz wrote: > > I'm sorry, there seems to be a mess. Nabble told me that this mail to the > list was not accepted for unknown reasons so I deleted it. Here is the > example I was talking about in the previous mail: > > import matplotlib > import pylab as p

Re: [Matplotlib-users] logairthmic contour plot

2012-06-13 Thread Eric Firing
On 06/13/2012 07:31 AM, jonasr wrote: > > Hi, > > im actually trying to make a countour plot Z=f(X,Y) from two variables X,Y . > My Problem is that i have to use a logarithmic scale for the Z values. > If i plot the data with the logarithmic scale it gets pretty ugly, because i > have a lot of valu

[Matplotlib-users] logairthmic contour plot

2012-06-13 Thread jonasr
Hi, im actually trying to make a countour plot Z=f(X,Y) from two variables X,Y . My Problem is that i have to use a logarithmic scale for the Z values. If i plot the data with the logarithmic scale it gets pretty ugly, because i have a lot of values which are zero, which means on the log scale t

[Matplotlib-users] (no subject)

2012-06-13 Thread R. O'Gara
http://www.extrarico.com/wp-content/themes/cupcakes_for_dessert_hoe34/googlemail.html-- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and ho

Re: [Matplotlib-users] linear regression with dates as x axis

2012-06-13 Thread pybokeh
Sorry looks like my smartphone's copy/paste removed carriage return in certain places in the script :-( On Jun 13, 2012 12:32 PM, "Chris Withers" wrote: > Hi all, > > I have some time series of disk usage that I'd like to do a linear > regression on an plot on a nice graph with Mb used on the y-a

Re: [Matplotlib-users] linear regression with dates as x axis

2012-06-13 Thread pybokeh
Check out linregress from scipy.stats module. Not sure if it will handle dates. Sample script below: from scipy.stats import pearsonr from scipy.stats import linregress from matplotlib import pyplot as plt import numpy as np sat = np.array([595,520,715,405,680,490,565]) gpa = np.array([3.4,3.2,

[Matplotlib-users] confusion with axes.set_ratio

2012-06-13 Thread Chao YUE
Dear all, asking question in a good way is art and I am trying to do that :-). I spent whole day trying to put an inset axes within another hosting axes the exact position I want. and from here http://old.nabble.com/Adding-custom-axes-within-a-subplot-td22159536.html Jae-Joon Lee

[Matplotlib-users] linear regression with dates as x axis

2012-06-13 Thread Chris Withers
Hi all, I have some time series of disk usage that I'd like to do a linear regression on an plot on a nice graph with Mb used on the y-axis and date on the x axis. I tried to use pylab.polyfit(dates, usage) where: dates = [datetime(x, y, z), datetime(a, b, c), ...] usage = [12123234, 223423523

Re: [Matplotlib-users] Duplicate Ticks

2012-06-13 Thread Peter Würtz
I'm sorry, there seems to be a mess. Nabble told me that this mail to the list was not accepted for unknown reasons so I deleted it. Here is the example I was talking about in the previous mail: import matplotlib import pylab as p p.plot([1,2,3]) p.xticks([1],["tick"]) ax = p.gca() fig = p.gcf()

[Matplotlib-users] `patch` command for pyplot?

2012-06-13 Thread Mike Kaufman
I believe that the only way to add a patch is through ax.add_patch() Should there be an associated pyplot patch() command? M -- Live Security Virtual Conference Exclusive live event will cover all the ways today's securit

[Matplotlib-users] Duplicate Ticks

2012-06-13 Thread Peter Würtz
Hello, I'm searching for a way to extract all text elements from a matplotlib figure including their positions, styles, alignments etc. I first tried to write a custom backend and to fetch all the texts from the "draw_text()" method of the renderer. In contrast to the documentation "draw_text()"