Re: [Matplotlib-users] type error with python 3.2 and version 1.1.1 of matplotlib (numpy error)

2012-09-05 Thread Eric Firing
On 2012/09/05 6:17 PM, Paul Tremblay wrote: > Hmm. I found that mpl handled my datetime objects just fine: Right, mpl has handled python datetime objects for a long time, but the numpy array with a datetime dtype is a new and different object, and it will take a bit of work to support it properl

Re: [Matplotlib-users] type error with python 3.2 and version 1.1.1 of matplotlib (numpy error)

2012-09-05 Thread Paul Tremblay
Hmm. I found that mpl handled my datetime objects just fine: # put the weeks on the x axis # dates are datetime.datetime ax.plot(dates, defects) ax.xaxis.set_major_formatter( matplotlib.dates.DateFormatter('%W')) # create an invisible line in order to # create a secondary x axis below # the f

Re: [Matplotlib-users] type error with python 3.2 and version 1.1.1 of matplotlib (numpy error)

2012-09-05 Thread Eric Firing
On 2012/09/05 4:04 PM, Paul Tremblay wrote: > I am using numpy 1.7, which I built myself (python3 setup.py build). I > had a chance to look a bit deeper into matplotlib, which in turn forced > me to learn a bit of numpy, and now I see that it probably makes more > sense to use numpy arrays for my d

Re: [Matplotlib-users] type error with python 3.2 and version 1.1.1 of matplotlib (numpy error)

2012-09-05 Thread Paul Tremblay
I am using numpy 1.7, which I built myself (python3 setup.py build). I had a chance to look a bit deeper into matplotlib, which in turn forced me to learn a bit of numpy, and now I see that it probably makes more sense to use numpy arrays for my data. Since the default for an array is a float, most

Re: [Matplotlib-users] Using the lasso tool when file is not main

2012-09-05 Thread Tony Yu
On Wed, Sep 5, 2012 at 7:19 PM, Mark Budde wrote: > Hi, > I'm not an expert so please go easy on me. I am using the pyplot lasso > demo, and have got it to work how I would like. I am having a problem, > however, where I cannot get it to work if my python file is not the > main file (where __name

Re: [Matplotlib-users] Using the lasso tool when file is not main

2012-09-05 Thread Benjamin Root
On Wednesday, September 5, 2012, Mark Budde wrote: > Hi, > I'm not an expert so please go easy on me. I am using the pyplot lasso > demo, and have got it to work how I would like. I am having a problem, > however, where I cannot get it to work if my python file is not the > main file (where __name

[Matplotlib-users] Using the lasso tool when file is not main

2012-09-05 Thread Mark Budde
Hi, I'm not an expert so please go easy on me. I am using the pyplot lasso demo, and have got it to work how I would like. I am having a problem, however, where I cannot get it to work if my python file is not the main file (where __name__ is not __main__). I took the part at the bottom in the "if

Re: [Matplotlib-users] Legend Marker Color Bug

2012-09-05 Thread Sterling Smith
On Sep 4, 2012, at 5:33PM, Jae-Joon Lee wrote: > On Wed, Sep 5, 2012 at 6:05 AM, Sterling Smith wrote: >> I still do not get black markers. Furthermore, if you try to make a new >> legend with the result of leg.get_lines(), you will get lines without >> markers, which leads me to the conclusio

Re: [Matplotlib-users] axes_grid1.inset_axes frame background color

2012-09-05 Thread Jae-Joon Lee
There is no easy way to do it (the extent of axes including the labels is determined only when the plot is drawn). And most straight forward way is to define your own artist. Attached is an one example of such artist. I think it is good to have such an artist class in matplotlib and I may able to p