Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 54e3592

Browse files
committed
Added call to axes.legend() in apply_callback to fix legend update bug.
1 parent 42a143c commit 54e3592

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/backends/qt_editor/figureoptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ def apply_callback(data):
155155

156156
# Redraw
157157
figure = axes.get_figure()
158+
axes.legend()
158159
figure.canvas.draw()
159160

160161
data = formlayout.fedit(datalist, title="Figure options", parent=parent,

0 commit comments

Comments
 (0)