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

2009-03-30 Thread Ken Schutte
On Tue, Mar 31, 2009 at 2:16 AM, Jouni K. Seppänen 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 (for small i

[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 = fig.add

[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 wrote: > On Wed, Dec 17, 2008 at 9:09 AM, Ken Schutte wrote: > > On Wed, Dec 17, 2008 at 1:49 AM, Jae-Joon Lee > wrote: > >> > >> This is a correct way indeed. > >> I believe that you considered it as a plain

Re: [Matplotlib-users] FancyArrowPatch without annotate

2008-12-17 Thread Ken Schutte
On Wed, Dec 17, 2008 at 1:49 AM, Jae-Joon Lee 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, 0.2), (0.5, 0.5),

[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 = matplotlib.patches.Fa

[Matplotlib-users] default imshow extent

2006-11-12 Thread Ken Schutte
Hi, If I display a simple matrix with imshow(), e.g: a = zeros((3,3)) a[0,0] = 1 imshow(a,interpolation='nearest') the axes extend from 0.0 to 3.0 in such a way that elements are centered at 0.5, 1.5,... For example, the point at (x,y)=(.9,.9) is red, whereas nearest-interp. should give a[1,1