summaryrefslogtreecommitdiff
path: root/examples/plot_input.py
diff options
context:
space:
mode:
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])