[IPython-User] qtconsole ignoring subplot spacing widths

Fernando Perez fperez.net@gmail....
Mon Jan 16 14:03:56 CST 2012

On Mon, Jan 16, 2012 at 3:47 AM, Thomas Wiecki
<thomas.wiecki@googlemail.com> wrote:
> With qtconsole inlining enabled the fig.subplots_adjust() settings are
> ignored it seems. Is this a bug?

No, it works fine but you have to create the figure and render it in a
single cell.  In inline mode, the figure is closed once rendered, so
you must make all the adjustments to the figure in the cell you create

In [9]: f, (a1, a2) = subplots(2, 1)
   ...: f.subplots_adjust(hspace=10)

Now, you can change this closing behavior either at runtime with

%config InlineBackend.close_figures = False

or by setting this permanently in your config file.

This is explained in the console docs here:




More information about the IPython-User mailing list