Skip to content

Commit 5c276a8

Browse files
homsimhomsim
and
homsim
authored
Quick fix: fig.canvas.set_window_title deprecated (#8961)
Co-authored-by: homsim <[email protected]>
1 parent bfed2fb commit 5c276a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: physics/n_body_simulation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def plot(
226226
No doctest provided since this function does not have a return value.
227227
"""
228228
fig = plt.figure()
229-
fig.canvas.set_window_title(title)
229+
fig.canvas.manager.set_window_title(title)
230230
ax = plt.axes(
231231
xlim=(x_start, x_end), ylim=(y_start, y_end)
232232
) # Set section to be plotted

0 commit comments

Comments
 (0)