Skip to content

Commit c7c3e2a

Browse files
authored
Merge pull request #453 from RocketPy-Team/fix/cp_position_in_rocket_draw
FIX: cp_position call in rocket.draw to work with mach dependent cp_position
2 parents d36947c + 9a8c445 commit c7c3e2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rocketpy/plots/rocket_plots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def draw(self, vis_args=None):
393393
ax.scatter(cm, 0, color="black", label="Center of Mass", s=30)
394394
ax.scatter(cm, 0, facecolors="none", edgecolors="black", s=100)
395395

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

0 commit comments

Comments
 (0)