[Matplotlib-users] leading whitespace in text

2010-05-30 Thread Christoph Gohlke
Hello,

consider the following simple code:

import matplotlib
from matplotlib import pyplot
pyplot.text(0, 0, "<--", family='monospace')
pyplot.show()

Using matplotlib-0.99.3.win32-py2.6, the text '<--' is drawn with an 
x-offset from the y-axis, as expected from the presence of leading 
whitespace.

Using matplotlib-1.0.svn.win32-py2.6 rev 8347, the leading whitespace is 
apparently removed from the text and '<--' is drawn right at the y-axis 
with no x-offset.

In both cases the font is monospace.

Is this change intended or a regression in 1.0svn?

Thank you.

--
Christoph

--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting a vector

2010-05-30 Thread Alan G Isaac
On 5/30/2010 6:42 AM, Florian Lindner wrote:
>  I want to plot a simple vector arrow with a specified starting point 
and end
>  point (or direction and length).
>

http://matplotlib.sourceforge.net/users/annotations_guide.html#annotating-with-arrow
 


http://matplotlib.sourceforge.net/users/annotations.html

hth,
Alan Isaac



--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Plotting a vector

2010-05-30 Thread Florian Lindner
Hello,

I want to plot a simple vector arrow with a specified starting point and end 
point (or direction and length).

I've found 
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.quiver 
but I don't see a way to set the length of the vector.

Though discussions about this topic recommend quiver.

Thanks,

Florian

--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users