Upon first creation you can set the figure size:
figure(figsize=(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.
Thanks for help.
I want to change the *aspect ratio* of matplotlib output (on screen and
PNG)
It appears that figure(figsize=(a,b)) method mentioned below
alters plot but final window still has same final size on the screen.
Maybe this is 100% clear-===> **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=(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
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=(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 <seberino@…391…> wrote:
Thanks for help.
I want to change the aspect ratio of matplotlib output (on screen and
PNG)It appears that figure(figsize=(a,b)) method mentioned below
alters plot but final window still has same final size on the screen.Maybe this is 100% clear-===> 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=(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/T127UzA/BbXzXzA66FgYi78CUvotnFFNiWahuai9wB56ZyLSAz4jt7fAcmQ==
=1Ead
-----END PGP SIGNATURE-----