diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2018-09-26 18:49:24 +0200 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2018-09-26 18:49:24 +0200 |
| commit | cc5c8e39d40c38e69da727e14a33d6be48ff4132 (patch) | |
| tree | cc2b90310fd4e70938966318c17a7aa1e1b8b068 /examples | |
| parent | f16b9487ba22624cad1552fbd85077069785cac2 (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-x | examples/plot_input.py | 4 |
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( |
