Skip to content

Commit fc7564e

Browse files
The9CatCopilot
andauthored
Update Nbody/plotOrbit.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a5cda91 commit fc7564e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Nbody/plotOrbit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def plot_orbit(positions, title="Orbital Trajectory", save_path=None):
4949
pos = []
5050
pos.append(data[:, 1:4]) # First object positions
5151
pos.append(data[:, 7:10]) # Second object positions
52-
pos.append(data[:, 13:17]) # Third object positions
52+
pos.append(data[:, 13:16]) # Third object positions
5353
pos.append(data[:, 19:22]) # Fourth object positions
5454
pos.append(data[:, 25:28]) # Fifth object positions
5555

0 commit comments

Comments
 (0)