SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Mark B. <ma...@gm...> - 2005年12月31日 11:43:16
Upon first creation you can set the figure size:
figure(figsize=3D(3,6)) for example gives you a tall figure.
But you cannot resize the figure with a command afterwards yet (if I am not
mistaken).
In interactive mode you can stretch the figure on the screen by dragging th=
e
window.
M.
Thanks for help.
I want to change the *aspect ratio* of matplotlib output (on screen and
PNG)
It appears that figure(figsize=3D(a,b)) method mentioned below
alters plot but final window still has same final size on the screen.
Maybe this is 100% clear-=3D=3D=3D> **What commands are EXACTLY equivalent
to making plot bigger by dragging window with the MOUSE???***
On Sat, 2005年12月31日 at 12:43 +0100, Mark Bakker wrote:
> Upon first creation you can set the figure size:
> figure(figsize=3D(3,6)) for example gives you a tall figure.
> But you cannot resize the figure with a command afterwards yet (if I
> am not mistaken).
> In interactive mode you can stretch the figure on the screen by
> dragging the window.
> M.
--=20
chris
Christian -
There is no command line to change the size of the figure window after you
have created it.
I think a prototype window has been implemented for the GTK backend, but I
haven't used it.
In pylab, the command axis('equal') set the aspect ratio equal on both axis
(so that circles look like circles), but I don't think that is what you
want.
You can also define the relative size of axes, for example
figure(figsize=3D(8,8))
axes((.1,.1,.8,.4))
makes an x axis that is twice as long as the y axis.
Mark
On 1/1/06, Christian Seberino <seb...@sp...> wrote:
>
> Thanks for help.
>
> I want to change the *aspect ratio* of matplotlib output (on screen and
> PNG)
>
> It appears that figure(figsize=3D(a,b)) method mentioned below
> alters plot but final window still has same final size on the screen.
>
> Maybe this is 100% clear-=3D=3D=3D> **What commands are EXACTLY equivalen=
t
> to making plot bigger by dragging window with the MOUSE???***
>
>
>
>
> On Sat, 2005年12月31日 at 12:43 +0100, Mark Bakker wrote:
> > Upon first creation you can set the figure size:
> > figure(figsize=3D(3,6)) for example gives you a tall figure.
> > But you cannot resize the figure with a command afterwards yet (if I
> > am not mistaken).
> > In interactive mode you can stretch the figure on the screen by
> > dragging the window.
> > M.
> --
> chris
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
>
> iQEVAwUAQ7dBqsXAD6FzhZH3AQIsmAgAouiut8y7WCt6FgmT5/U4+9xVBzO0AmI7
> i/zD/Gn21U0Pw8BggoQv0uKA5tjhOgb9yICB/O/vgjoGYbyAfS+CTL1cqPG/ry2/
> /O3+2F0HqqgDt66B58+3ZOEHgHN0BPzw6MO4WYfRi4X1Fs82iw3Ra8RZIPRhEE77
> cieMtoxQLLJXgyimFAqsEPKifwEfqpit+Ax6cQMA2xsrg7Lf8+277ompyIW6ANw2
> xdwQlUcS0iwEZsi31YEkXPwnuWfau4jMOOSWy/N+hl8uK3ybmUD0MjAeKL/T127U
> zA/BbXzXzA66FgYi78CUvotnFFNiWahuai9wB56ZyLSAz4jt7fAcmQ=3D=3D
> =3D1Ead
> -----END PGP SIGNATURE-----
>
>
>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /