diff --git a/PopPUNK/plot.py b/PopPUNK/plot.py index 0d628061..faf5ac37 100644 --- a/PopPUNK/plot.py +++ b/PopPUNK/plot.py @@ -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)