8000 DOC: change radio button example to use facecolor · matplotlib/matplotlib@4392154 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4392154

Browse files
committed
DOC: change radio button example to use facecolor
Use `facecolor` not `axisbg`
1 parent c68af4a commit 4392154

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/widgets/radio_buttons.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
plt.subplots_adjust(left=0.3)
1313

1414
axcolor = 'lightgoldenrodyellow'
15-
rax = plt.axes([0.05, 0.7, 0.15, 0.15], axisbg=axcolor)
15+
rax = plt.axes([0.05, 0.7, 0.15, 0.15], facecolor=axcolor)
1616
radio = RadioButtons(rax, ('2 Hz', '4 Hz', '8 Hz'))
1717

1818

@@ -23,7 +23,7 @@ def hzfunc(label):
2323
plt.draw()
2424
radio.on_clicked(hzfunc)
2525

26-
rax = plt.axes([0.05, 0.4, 0.15, 0.15], axisbg=axcolor)
26+
rax = plt.axes([0.05, 0.4, 0.15, 0.15], facecolor=axcolor)
2727
radio2 = RadioButtons(rax, ('red', 'blue', 'green'))
2828

2929

@@ -32,7 +32,7 @@ def colorfunc(label):
3232
plt.draw()
3333
radio2.on_clicked(colorfunc)
3434

35-
rax = plt.axes([0.05, 0.1, 0.15, 0.15], axisbg=axcolor)
35+
rax = plt.axes([0.05, 0.1, 0.15, 0.15], facecolor=axcolor)
3636
radio3 = RadioButtons(rax, ('-', '--', '-.', 'steps', ':'))
3737

3838

0 commit comments

Comments
 (0)
0