summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2023-06-29 16:48:18 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2023-06-29 16:48:18 +0200
commitef236ac1c716470913d76fac856dbb2da89e15fe (patch)
tree2ad4701bc488519b116b62258684efb04c3bfc97 /lib
parent3574282c2b6fa669382828011df3a9bfd804a29b (diff)
plotter: correctly set title
Diffstat (limited to 'lib')
-rwxr-xr-xlib/plotter.py4
1 files changed, 2 insertions, 2 deletions
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: