From cc5c8e39d40c38e69da727e14a33d6be48ff4132 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Wed, 26 Sep 2018 18:49:24 +0200 Subject: 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. --- examples/plot_input.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/plot_input.py') 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( -- cgit v1.2.3