Re: [Matplotlib-users] drawing a box

2007-12-18 Thread John Hunter
On Dec 18, 2007 9:47 PM, Bryan Fodness <[EMAIL PROTECTED]> wrote: > I do want a rectangle. And, I have tried, > > axvline(x=x1, ymin=y1, ymax=y2) > axvline(x=x2, ymin=y1, ymax=y2) > axhline(y=y1, xmin=x1, xmax=x2) > axhline(y=y2, xmin=x1, xmax=x2) > You can either use the plot function "fill" I

Re: [Matplotlib-users] drawing a box

2007-12-18 Thread Bryan Fodness
I do want a rectangle. And, I have tried, axvline(x=x1, ymin=y1, ymax=y2) axvline(x=x2, ymin=y1, ymax=y2) axhline(y=y1, xmin=x1, xmax=x2) axhline(y=y2, xmin=x1, xmax=x2) On Dec 18, 2007 10:40 PM, John Hunter <[EMAIL PROTECTED]> wrote: > On Dec 18, 2007 9:00 PM, Bryan Fodness <[EMAIL PROTECTED]>

Re: [Matplotlib-users] drawing a box

2007-12-18 Thread John Hunter
On Dec 18, 2007 9:00 PM, Bryan Fodness <[EMAIL PROTECTED]> wrote: > I would like to draw a polygon using a x1, x2, y1, and y2. At a minimum, x1, x2, y1, and y2 define a line segment, or at most a rectangle. You say a "polygon". What exactly do you mean, and what have you tried (code please)? JD

[Matplotlib-users] drawing a box

2007-12-18 Thread Bryan Fodness
I would like to draw a polygon using a x1, x2, y1, and y2. I tried to use axhline and axvline with the min and max values but it does give the desired result. It changes the axis limits and does not draw a line at all. Any help would be appreciated. Bryan -- "The game of science can accurately

Re: [Matplotlib-users] LaTeX preamble & Verbose errors in 0.91.1

2007-12-18 Thread Darren Dale
On Tuesday 18 December 2007 10:55:36 am Peter-Jan Randewijk wrote: > Darren, > > Thanks for the quick reply... It works like a charm... Somehow I > missed the post in the userslist... You're off the hook :) It was posted at the sourceforge bugtracker, not on the mailing list. > Op 2007/12/18 1

Re: [Matplotlib-users] LaTeX preamble & Verbose errors in 0.91.1

2007-12-18 Thread Peter-Jan Randewijk
Darren, Thanks for the quick reply... It works like a charm... Somehow I missed the post in the userslist... Kind regards, Peter-Jan Op 2007/12/18 17:25, het Darren Dale die volgende geskryf: > Somebody reported it right after 0.91.1 was released. It has been fixed in > svn. To hold you ove

Re: [Matplotlib-users] LaTeX preamble & Verbose errors in 0.91.1

2007-12-18 Thread Darren Dale
Somebody reported it right after 0.91.1 was released. It has been fixed in svn. To hold you over until the next release, I think you just need to update your matplotlib/__init__.py and matplotlib/rcsetup.py. On Tuesday 18 December 2007 10:07:28 am Peter-Jan Randewijk wrote: > Dear Darren, > > I

Re: [Matplotlib-users] LaTeX preamble & Verbose errors in 0.91.1

2007-12-18 Thread Peter-Jan Randewijk
Dear Darren, I know "text.latex.preamble" is not supported, but since I upgraded to Matplotlib 0.91.1 my latex preamble code which was working perfectly well in 0.90.1, now gives my the follow errors (both on openSUSE & XP): In [1]: run overlap_vs_concentrated.py C:\Python\lib\site-packages\m

Re: [Matplotlib-users] using strpdate2num in load

2007-12-18 Thread Emmanuel
Yes, I think strpdate2num is based on dateutil.parser.parse thast's why I tried dayfirst=True which is used with dateutil.parser.parse. It would be funny if from a list of string, it could be automatically try to decide between day/month/year, month/day/year format... (it´s a joke) --

Re: [Matplotlib-users] using strpdate2num in load

2007-12-18 Thread Lionel Roubeyrie
Hi Emmanuel, look at dateutil.parser.parse, there is exactly what you search. Le mardi 18 décembre 2007, Emmanuel a écrit : > Ok, thank you! > > I'm missing an option to (easily) use date that start with the day > day/month/year (it is the case in Brazil and France for example) > > I'm using somet