summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMatthias Geier <Matthias.Geier@gmail.com>2018-09-26 18:49:24 +0200
committerMatthias Geier <Matthias.Geier@gmail.com>2018-09-26 18:49:24 +0200
commitcc5c8e39d40c38e69da727e14a33d6be48ff4132 (patch)
treecc2b90310fd4e70938966318c17a7aa1e1b8b068 /examples
parentf16b9487ba22624cad1552fbd85077069785cac2 (diff)
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.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/plot_input.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/plot_input.py b/examples/plot_input.py
index 88eb99f..ad12a9c 100755
--- a/examples/plot_input.py
+++ b/examples/plot_input.py
@@ -100,8 +100,8 @@ try:
ax.axis((0, len(plotdata), -1, 1))
ax.set_yticks([0])
ax.yaxis.grid(True)
- ax.tick_params(bottom='off', top='off', labelbottom='off',
- right='off', left='off', labelleft='off')
+ ax.tick_params(bottom=False, top=False, labelbottom=False,
+ right=False, left=False, labelleft=False)
fig.tight_layout(pad=0)
stream = sd.InputStream(