From b7962d7c8be1a7d39280c84fc8d394571e698dd0 Mon Sep 17 00:00:00 2001 From: Lev Vereshchagin Date: Wed, 6 Apr 2022 09:39:05 +0300 Subject: Run `pyupgrade` on codebase https://github.com/asottile/pyupgrade `pyupgrade --py37-plus` --- examples/plot_input.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/plot_input.py') 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]) -- cgit v1.2.3