Skip to content

Commit

Permalink
FIX: cp_position call in rocket.draw to work with mach dependent cp_p…
Browse files Browse the repository at this point in the history
…osition
  • Loading branch information
giovaniceotto committed Nov 6, 2023
1 parent d36947c commit 9a8c445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rocketpy/plots/rocket_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def draw(self, vis_args=None):
ax.scatter(cm, 0, color="black", label="Center of Mass", s=30)
ax.scatter(cm, 0, facecolors="none", edgecolors="black", s=100)

cp = self.rocket.cp_position
cp = self.rocket.cp_position(0)
ax.scatter(cp, 0, label="Center Of Pressure", color="red", s=30, zorder=10)
ax.scatter(cp, 0, facecolors="none", edgecolors="red", s=100, zorder=10)

Expand Down

0 comments on commit 9a8c445

Please sign in to comment.