summaryrefslogtreecommitdiff
path: root/examples/plot_input.py
diff options
context:
space:
mode:
authorLev Vereshchagin <mail@vrslev.com>2022-04-06 09:39:05 +0300
committerLev Vereshchagin <mail@vrslev.com>2022-04-06 09:39:05 +0300
commitb7962d7c8be1a7d39280c84fc8d394571e698dd0 (patch)
tree1dd2a205b23580147f527338743e787806336115 /examples/plot_input.py
parent8b10b8f6127e18efaa443ff79e90636ceef32750 (diff)
Run `pyupgrade` on codebase
https://github.com/asottile/pyupgrade `pyupgrade --py37-plus`
Diffstat (limited to 'examples/plot_input.py')
-rwxr-xr-xexamples/plot_input.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/plot_input.py b/examples/plot_input.py
index cf325d6..5586038 100755
--- a/examples/plot_input.py
+++ b/examples/plot_input.py
@@ -100,7 +100,7 @@ try:
fig, ax = plt.subplots()
lines = ax.plot(plotdata)
if len(args.channels) > 1:
- ax.legend(['channel {}'.format(c) for c in args.channels],
+ ax.legend([f'channel {c}' for c in args.channels],
loc='lower left', ncol=len(args.channels))
ax.axis((0, len(plotdata), -1, 1))
ax.set_yticks([0])