You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
results in the IPython console when plotting inline as :
>
But, as explicitly specified in my code, what I want is that :
>
This behavior is unacceptable for me when I'm trying to format my figures in a very specific layout for a paper and is the reason why I've never used inline plotting in the past.
To avoid this, one has to override the default magic with :
As explained in this StackOverflow answer, the ipython magics are enforcing
bbox_inches='tight'
by default. This means that the following code :results in the IPython console when plotting inline as :
>
But, as explicitly specified in my code, what I want is that :
>
This behavior is unacceptable for me when I'm trying to format my figures in a very specific layout for a paper and is the reason why I've never used inline plotting in the past.
To avoid this, one has to override the default magic with :
%config InlineBackend.print_figure_kwargs = {'bbox_inches':None}
As discussed with @ccordoba12, this should be added in the Preferences of the IPython console, under the tab
Graphics
, in the sectionInline backend
.References :
The text was updated successfully, but these errors were encountered: