Quick fix: fig.canvas.set_window_title deprecated (#8961)

Co-authored-by: homsim <simon@simon-ThinkPadE460.fritz.box>
This commit is contained in:
homsim 2023-08-16 10:07:50 +02:00 committed by GitHub
parent bfed2fb788
commit 5c276a8377
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -226,7 +226,7 @@ def plot(
No doctest provided since this function does not have a return value.
"""
fig = plt.figure()
fig.canvas.set_window_title(title)
fig.canvas.manager.set_window_title(title)
ax = plt.axes(
xlim=(x_start, x_end), ylim=(y_start, y_end)
) # Set section to be plotted