8000 FIX: Plot is now rendered with correct inital value (#16936) · matplotlib/matplotlib@381bc48 · GitHub
[go: up one dir, main page]

Skip to content

Commit 381bc48

Browse files
authored
FIX: Plot is now rendered with correct inital value (#16936)
* FIX: Plot is now rendered with correct inital value * DOC:solve flake8 error by moving comment line * CLN: removed useless space
1 parent c292827 commit 381bc48

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/widgets/slider_demo.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,7 @@ def colorfunc(label):
5959
fig.canvas.draw_idle()
6060
radio.on_clicked(colorfunc)
6161

62+
# Initialize plot with correct initial active value
63+
colorfunc(radio.value_selected)
64+
6265
plt.show()

0 commit comments

Comments
 (0)
0