Skip to content

Commit cc5c8e3

Browse files
committed
plot_input example: 'off' -> False
This avoids the message MatplotlibDeprecationWarning: Passing one of 'on', 'true', 'off', 'false' as a boolean is deprecated; use an actual boolean (True/False) instead.
1 parent f16b948 commit cc5c8e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/plot_input.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def update_plot(frame):
100100
ax.axis((0, len(plotdata), -1, 1))
101101
ax.set_yticks([0])
102102
ax.yaxis.grid(True)
103-
ax.tick_params(bottom='off', top='off', labelbottom='off',
104-
right='off', left='off', labelleft='off')
103+
ax.tick_params(bottom=False, top=False, labelbottom=False,
104+
right=False, left=False, labelleft=False)
105105
fig.tight_layout(pad=0)
106106

107107
stream = sd.InputStream(

0 commit comments

Comments
 (0)