[Matplotlib-users] Reposition a Legend

2007-07-20 Thread Anthony
So I've figured out how to move the graph data out from underneath my legend using draw() methods and calculating where the axis should be but now I'd also like the top of the legend to be at the same height as the top of the axis. How do I go about moving the legend once I've created it? This is

[Matplotlib-users] Modifying Grid Size

2007-07-20 Thread J Makem
Hi, I wanted to plot a graph with a grid background and an x axis ranging from 0 -16 and a y axis ranging from 0 -16. I used the following code: from pylab import* xlabel('time (s)') ylabel('voltage (mV)') title('About as simple as it gets, folks') grid(True) axis([-16,16,-16,16]) show() How

Re: [Matplotlib-users] How to use 'arrow'?

2007-07-20 Thread Eric Firing
The automatic docstring generation for this command is badly fouled up, and I can't straighten it out right now. In the meantime, look at the docstring for FancyArrow.__init__ in patches.py. There is also a horrendously complicated example in examples/arrow_demo.py. Depending on what you want

Re: [Matplotlib-users] How to use 'arrow'?

2007-07-20 Thread Jessica Lu
I usually use the following to make single arrows: plot([0,1], 'k.') arr1 = pylab.Arrow(0.5, 0.5, 0.1, 0.0, width=0.02) fig = pylab.gca() fig.add_patch(arr1) If in "ipython -pylab" you need to savefig or send another command (e.g. xlabel) or reload/refresh the plot (I can't remember the com

Re: [Matplotlib-users] default shading for pcolor

2007-07-20 Thread George Nurser
Default flat would be great. The default faceted has always been a pain. George. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mr

Re: [Matplotlib-users] default shading for pcolor

2007-07-20 Thread Ryan May
Eric Firing wrote: > Consistent with matlab, the default shading for pcolor in matplotlib and > pylab is 'faceted', which puts black lines around all the > quadrilaterals. Some users (e.g., Rob Hetland and myself) never want > this; are there users who *do* want to keep this default? I suspect

[Matplotlib-users] default shading for pcolor

2007-07-20 Thread Eric Firing
Consistent with matlab, the default shading for pcolor in matplotlib and pylab is 'faceted', which puts black lines around all the quadrilaterals. Some users (e.g., Rob Hetland and myself) never want this; are there users who *do* want to keep this default? I suspect so, in which case the sol

Re: [Matplotlib-users] text element mixed coordinate systems

2007-07-20 Thread Jouni K . Seppänen
Matthew Auger <[EMAIL PROTECTED]> writes: > Hi...I'm interested in plotting text elements with the X value in data > coordinates and the Y value in axis coordinates See . -- Jouni K. Seppänen http://www.iki.fi/jks

[Matplotlib-users] How to use 'arrow'?

2007-07-20 Thread Alexander Dietz
Hi, How is the syntax for the matplotlib command 'arrow'? There is not very much to take from the help (see below). An example would be nice. Thanks Alex In [46]: arrow? Type: function Base Class: String Form: Namespace: Interactive File: /usr/lib/python2.4/si