Skip to content

Commit

Permalink
Merge pull request #843 from dstl/fix_ellipse_plot
Browse files Browse the repository at this point in the history
Fix ellipse plot
  • Loading branch information
sdhiscocks committed Aug 22, 2023
2 parents cb35415 + 6d80f99 commit 9fc8dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stonesoup/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ def func3(x):

c, s = np.cos(orient), np.sin(orient)
rotational_matrix = np.array(((c, -s), (s, c)))

points.append(points[0])
points = np.array([[a * np.sin(i), b * np.cos(i)] for i in points])
points = rotational_matrix @ points.T
return points + state.mean[mapping[:2], :]
Expand Down

0 comments on commit 9fc8dff

Please sign in to comment.