From 400e4cdbfe181cff4b88ccb421b1f5d9d7ef695e Mon Sep 17 00:00:00 2001 From: John Lees Date: Fri, 13 Oct 2023 12:07:59 +0100 Subject: [PATCH] API change in mpl380 ellipses Angle is now a kwarg (thanks and why) --- PopPUNK/plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)