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
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
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"""
...
.
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
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),
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
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