Skip to content

Commit

Permalink
Merge pull request #285 from bacpop/mpl-380-fix
Browse files Browse the repository at this point in the history
API change in mpl380 ellipses
  • Loading branch information
johnlees authored Oct 13, 2023
2 parents af0e319 + 400e4cd commit eaad3db
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 eaad3db

Please sign in to comment.