Re: [Matplotlib-users] padding when saving to a file

2009-03-31 Thread Ken Schutte
On Tue, Mar 31, 2009 at 2:16 AM, Jouni K. Seppänen j...@iki.fi wrote: Use fig.add_axes([0,0,1,1],frameon=False) instead - add_subplot reserves some space for a title, axis labels, etc. Great, that works. I have noticed that when I use ticks and labels, the border sometimes cuts things off

[Matplotlib-users] padding when saving to a file

2009-03-30 Thread Ken Schutte
Is it possible to control (actually remove) the amount of white space padded to a figure when saving to a file? For example, the white border found on the output of something like the following: import matplotlib.pyplot as plt import matplotlib.patches as mpatches fig = plt.figure() ax =

[Matplotlib-users] multiline LaTeX code

2009-01-13 Thread Ken Schutte
I'm trying to add some more complex LaTeX-rendered equations into a a figure, and having some problems. I've been trying various things with 'usetex', but it seems the problem might be that I can't seem to write the LaTex code on a single line. For example, can you not do: ax.text(0,0,r ... ...

Re: [Matplotlib-users] FancyArrowPatch without annotate

2008-12-17 Thread Ken Schutte
On Wed, Dec 17, 2008 at 1:07 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: On Wed, Dec 17, 2008 at 9:09 AM, Ken Schutte kts.li...@gmail.com wrote: On Wed, Dec 17, 2008 at 1:49 AM, Jae-Joon Lee lee.j.j...@gmail.com wrote: This is a correct way indeed. I believe that you considered

Re: [Matplotlib-users] FancyArrowPatch without annotate

2008-12-17 Thread Ken Schutte
On Wed, Dec 17, 2008 at 1:49 AM, Jae-Joon Lee lee.j.j...@gmail.com wrote: This is a correct way indeed. I believe that you considered it as a plain line because the arrow head is too small. You need to adjust the mutation_scale parameter. Try c = matplotlib.patches.FancyArrowPatch((0.2,

[Matplotlib-users] FancyArrowPatch without annotate

2008-12-16 Thread Ken Schutte
This new FancyArrow stuff looks great, but I'm having trouble getting it to work. All of the gallery examples I see seem to only use it thru an 'annotate' call. I just want to draw these arrows directly. I tried the following, but it just draws a plain line: ax = gca() c =