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