8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c68af4a commit 4392154Copy full SHA for 4392154
examples/widgets/radio_buttons.py
@@ -12,7 +12,7 @@
12
plt.subplots_adjust(left=0.3)
13
14
axcolor = 'lightgoldenrodyellow'
15
-rax = plt.axes([0.05, 0.7, 0.15, 0.15], axisbg=axcolor)
+rax = plt.axes([0.05, 0.7, 0.15, 0.15], facecolor=axcolor)
16
radio = RadioButtons(rax, ('2 Hz', '4 Hz', '8 Hz'))
17
18
@@ -23,7 +23,7 @@ def hzfunc(label):
23
plt.draw()
24
radio.on_clicked(hzfunc)
25
26
-rax = plt.axes([0.05, 0.4, 0.15, 0.15], axisbg=axcolor)
+rax = plt.axes([0.05, 0.4, 0.15, 0.15], facecolor=axcolor)
27
radio2 = RadioButtons(rax, ('red', 'blue', 'green'))
28
29
@@ -32,7 +32,7 @@ def colorfunc(label):
32
33
radio2.on_clicked(colorfunc)
34
35
-rax = plt.axes([0.05, 0.1, 0.15, 0.15], axisbg=axcolor)
+rax = plt.axes([0.05, 0.1, 0.15, 0.15], facecolor=axcolor)
36
radio3 = RadioButtons(rax, ('-', '--', '-.', 'steps', ':'))
37
38
0 commit comments