Re: [Matplotlib-users] How to draw a straight line?

2007-03-07 Thread kc106_2005-matplotlib
sourceforge.net > Subject: Re: [Matplotlib-users] How to draw a straight line? > > > On 3/7/07, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: > > > Upon working with this a little further, I discover that it > works only > > in full-view screen mode.

Re: [Matplotlib-users] How to draw a straight line?

2007-03-07 Thread John Hunter
On 3/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Upon working with this a little further, I discover that it works only in > full-view screen mode. May be that's because xy is in pixel mode then? When > I save it to a png file and then view it, the lines are wrong. The default coords

Re: [Matplotlib-users] How to draw a straight line?

2007-03-07 Thread kc106_2005-matplotlib
]" <[EMAIL PROTECTED]> To: matplotlib-users@lists.sourceforge.net Sent: Wednesday, March 7, 2007 9:40:45 AM Subject: Re: [Matplotlib-users] How to draw a straight line? Thanks for the answer, John and Jouni. Okay, Line2D works. However, it appears to work in point (or is it pixels?) onl

Re: [Matplotlib-users] How to draw a straight line?

2007-03-07 Thread kc106_2005-matplotlib
by Jouni. I am afraid I am lost what that does Regards, > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of John Hunter > Sent: Wednesday, March 07, 2007 6:48 AM > To: matplotlib-users@lists.sourceforge.net > Subject: Re: [Matp

Re: [Matplotlib-users] How to draw a straight line?

2007-03-07 Thread John Hunter
On 3/6/07, Jouni K. Seppänen <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] writes: > > How do I draw a line going from point A to point B on a figure (not It probably makes more sense not to use Axes.plot at all, since the line is not associated with an Axes from matplotlib.lines import Line2D f

Re: [Matplotlib-users] How to draw a straight line?

2007-03-06 Thread Jouni K . Seppänen
[EMAIL PROTECTED] writes: > How do I draw a line going from point A to point B on a figure (not > plot reference frame), with a particular color and style? Give a transform=gcf().transFigure argument to plot: http://www.scipy.org/Cookbook/Matplotlib/Transformations If your line goes outside the

[Matplotlib-users] How to draw a straight line?

2007-03-06 Thread kc106_2005-matplotlib
Hi list, Must be a dumb question: How do I draw a line going from point A to point B on a figure (not plot reference frame), with a particular color and style? I scan through the manual and nothing jumped out - closest is Rectangle but that doesn't accept style parameter. Thanks, -- John Hen