Skip to content

Commit

Permalink
API change in mpl380 ellipses
Browse files Browse the repository at this point in the history
Angle is now a kwarg (thanks and why)
  • Loading branch information
johnlees committed Oct 13, 2023
1 parent af0e319 commit 400e4cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PopPUNK/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def plot_results(X, Y, means, covariances, scale, title, out_prefix):
# Plot an ellipse to show the Gaussian component
angle = np.arctan(u[1] / u[0])
angle = 180. * angle / np.pi # convert to degrees
ell = mpl.patches.Ellipse(mean*scale, v[0], v[1], 180. + angle, color=color)
ell = mpl.patches.Ellipse(mean*scale, v[0], v[1], angle=180. + angle, color=color)
ell.set_clip_box(splot.bbox)
ell.set_alpha(0.5)
splot.add_artist(ell)
Expand Down

0 comments on commit 400e4cd

Please sign in to comment.