clone more legend settings when regenerating in Qt figure options dialog #17775
Labels
Difficulty: Medium
Good first issue
Open a pull request against these issues if there are no active ones!
Milestone
Bug report
xref https://stackoverflow.com/questions/62602933/matplotlib-navigation-toolbar-resets-legendstyle
The logic to regenerate the legend in the Qt figure option window discards most of the custom state set on the legend.
Bug summary
The logic that regenerate the legend pulls only ncols and if the legend is draggable
matplotlib/lib/matplotlib/backends/qt_editor/figureoptions.py
Lines 237 to 246 in e73d4e0
but nothing else.
Code for reproduction
open the figure options, tick "(Re)-generate legend" and hit OK or apply
Actual outcome
The legend settings are discarded when the figure is re-generated
Expected outcome
The
bbox_to_anchor
,loc
,... settings to be re-used.Matplotlib version
print(matplotlib.get_backend())
): Qt5Agg (any Qt5 backend)installed from source
The text was updated successfully, but these errors were encountered: