DOC remove MatplotlibDeprecationWarnings for `plot_gmm.py` example
@@ -52,7 +52,7 @@ def plot_results(X, Y_, means, covariances, index, title):
# Plot an ellipse to show the Gaussian component
angle = np.arctan(u[1] / u[0])
angle = 180.0 * angle / np.pi # convert to degrees
- ell = mpl.patches.Ellipse(mean, v[0], v[1], 180.0 + angle, color=color)
+ ell = mpl.patches.Ellipse(mean, v[0], v[1], angle=180.0 + angle, color=color)
ell.set_clip_box(splot.bbox)
ell.set_alpha(0.5)
splot.add_artist(ell)
