Decreasing blank image space?

Hi all, well, I'm sorry to wake up an old thread, but

    > what if there are subplots in the figure ? I tried to ask

    > axes([0.1, 0.1, 0.9, 0.9])

    > before specifying my subplot()s, but it changed nothing.

    > How to reduce the margin of the whole figure when it has
    > subplots ?

I think you may be misunderstanding something. axes and subplot are
both helper functions to create an Axes instance. You should use one
or the other to create a given Axes, but should not use "axes" before
"subplot" in order to change the behavior of subplot.

If you do not like the way the Axes are laid out when using subplot,
you have to do the layout manually with axes. There have been some
helper functions and code posted on the mailing list archives to make
this process easier (eg a tk backend GUI widget to help you configure
subplots).

JDH

I think you may be misunderstanding something. axes and subplot are
both helper functions to create an Axes instance. You should use one
or the other to create a given Axes, but should not use "axes" before
"subplot" in order to change the behavior of subplot.

Yes, you were right, I was a bit confused by this axes stuff, which is now
clearer to me. Thanks !

Still, I have the feeling that having both an Axis and an Axes class, while
"axes" is the plural of "axis", might be a bit confusing

If you do not like the way the Axes are laid out when using subplot,
you have to do the layout manually with axes. There have been some
helper functions and code posted on the mailing list archives to make
this process easier (eg a tk backend GUI widget to help you configure
subplots).

OK, I didn't find them but will try further.

Anyway, subfigures are drawn with a certain margin between each other, which
must take the form of either a hardcoded constant in the source code, or a
variable. Exposing this constant/variable to the user would allow him to
easily change it, which sounds useful to me :wink:

I've looked into the axes-related source code for that constant/variable, but
couldn't find it...

cheers,
nicolas

···

On Monday 13 June 2005 17:51, John Hunter wrote: