From ef236ac1c716470913d76fac856dbb2da89e15fe Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 29 Jun 2023 16:48:18 +0200 Subject: plotter: correctly set title --- lib/plotter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/plotter.py b/lib/plotter.py index 1fced3a..b7f47c0 100755 --- a/lib/plotter.py +++ b/lib/plotter.py @@ -127,7 +127,7 @@ def plot_y(Y, **kwargs): def plot_xy(X, Y, xlabel=None, ylabel=None, title=None, output=None, family=False): fig, ax1 = plt.subplots(figsize=(10, 6)) if title is not None: - fig.canvas.set_window_title(title) + ax1.set_title(title) if xlabel is not None: ax1.set_xlabel(xlabel) if ylabel is not None: @@ -174,7 +174,7 @@ def plot_param( ): fig, ax1 = plt.subplots(figsize=(10, 6)) if title is not None: - fig.canvas.set_window_title(title) + ax1.set_title(title) if xlabel is not None: ax1.set_xlabel(xlabel) if ylabel is not None: -- cgit v1.2.3