Skip to content

[notebook] Figure legend not shown in inline backend if ouside the box of the axes #2939

@montefra

Description

@montefra

In this notebook I use the inline backend and plot two figures with two axes and a figure legend each.
In both cases I adjust the subplot location setting it's right border to 0.7 and put the legend in location right (or 7). In the second case I push the bbox of the legend partially out of the subplot location. Then I save both figures.
The saved figures are correct
frominline_figure1
frominline_figure2

But in the notebook it looks like that changing the subplot boundaries with fig.subplots_adjust effectively resize the figure. So in the first case the legend is pushed between the axes, and in the second case the legend is cut.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions