Hi, I need help doing the following: I need to create a square png image (256x256 pixels) with NO margins. I need my plot area to completely fill this 256x256 box, regardless of what the plot's aspect ratio should be; i.e., I want the plot area stretched or compressed either in the vertical or horizontal direction so that the plot completely fills png output...no margins at either the top&bottom or left&right edges. The data Im plotting is geographic lat&lon ranges, and these areas are not perfectly square, they are more rectangular. matplotlib tries to maintain the aspect ratio in my plots and so it always adds margins to the top&bottom of my plot edges. I need to tell matplotlib to ignore the fact that the plot should be rectangular, and instead plot it to fit my figure size, even if this visually deforms my plot. I understand that if I set the axes, I can somewhat control the margin size, so doing something like 'axes([0,0,1,1],frameon='false')' should eliminate the margins. I see that the axes() function has a 'set_aspect()' function, but Im not clear on how to use it, and Im even sure that it can do what I need it to do; 'disable' the aspect ratio and fill my figure area with my plot.... So, again, what can I do to completely fill the 2.56"x2.56" square figure ??? (even when the plot is NOT square, its rectangular...) Please help, P.Romero
_________________________________________________________________ Windows Live⢠Groups: Create an online spot for your favorite groups to meet. http://windowslive.com/online/groups?ocid=TXT_TAGLM_WL_groups_032009 ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users