Skip to content

Commit

Permalink
Merge pull request #283 from chris-konrad/trajectory-plot-timesteps
Browse files Browse the repository at this point in the history
Correcting time step width of trajectory plots to equal node_time_int…
  • Loading branch information
moorepants authored Dec 20, 2024
2 parents aae009e + bca3d41 commit cbea1dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opty/direct_collocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def plot_trajectories(self, vector, axes=None):
node_time_interval = self.collocator.node_time_interval

time = np.linspace(0,
self.collocator.num_collocation_nodes *
(self.collocator.num_collocation_nodes-1) *
node_time_interval,
num=self.collocator.num_collocation_nodes)

Expand Down

0 comments on commit cbea1dc

Please sign in to comment.