Skip to content

Commit

Permalink
Quick fix: fig.canvas.set_window_title deprecated (TheAlgorithms#8961)
Browse files Browse the repository at this point in the history
Co-authored-by: homsim <[email protected]>
  • Loading branch information
homsim and homsim authored Aug 16, 2023
1 parent bfed2fb commit 5c276a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion physics/n_body_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5c276a8

Please sign in to comment.