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

Skip to content

Commit 6e89ee5

Browse files
committed
remove facecolor from snap demo example
1 parent 790d349 commit 6e89ee5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

examples/widgets/slider_snap_demo.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@
2222
plt.subplots_adjust(bottom=0.25)
2323
l, = plt.plot(t, s, lw=2)
2424

25-
slider_bkd_color = 'lightgoldenrodyellow'
26-
ax_freq = plt.axes([0.25, 0.1, 0.65, 0.03], facecolor=slider_bkd_color)
27-
ax_amp = plt.axes([0.25, 0.15, 0.65, 0.03], facecolor=slider_bkd_color)
25+
ax_freq = plt.axes([0.25, 0.1, 0.65, 0.03])
26+
ax_amp = plt.axes([0.25, 0.15, 0.65, 0.03])
2827

2928
# define the values to use for snapping
3029
allowed_amplitudes = np.concatenate([np.linspace(.1, 5, 100), [6, 7, 8, 9]])
@@ -54,7 +53,7 @@ def update(val):
5453
samp.on_changed(update)
5554

5655
ax_reset = plt.axes([0.8, 0.025, 0.1, 0.04])
57-
button = Button(ax_reset, 'Reset', color=slider_bkd_color, hovercolor='0.975')
56+
button = Button(ax_reset, 'Reset', hovercolor='0.975')
5857

5958

6059
def reset(event):

0 commit comments

Comments
 (0)