8000 Merge pull request #13969 from meeseeksmachine/auto-backport-of-pr-13… · matplotlib/matplotlib@ccf1043 · GitHub
[go: up one dir, main page]

Skip to content

Commit ccf1043

Browse files
authored
Merge pull request #13969 from meeseeksmachine/auto-backport-of-pr-13950-on-v3.1.x
Backport PR #13950 on branch v3.1.x (confidence_ellipse_markup)
2 parents 28f680f + fa8edf4 commit ccf1043

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

examples/statistics/confidence_ellipse.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616
pearson correlation coefficients and ones) is particularly easy to handle.
1717
"""
1818

19+
20+
import numpy as np
21+
import matplotlib.pyplot as plt
22+
from matplotlib.patches import Ellipse
23+
import matplotlib.transforms as transforms
24+
25+
1926
#############################################################################
2027
#
2128
# The plotting function itself
@@ -31,12 +38,6 @@
3138
# like in these examples).
3239

3340

34-
import numpy as np
35-
import matplotlib.pyplot as plt
36-
from matplotlib.patches import Ellipse
37-
import matplotlib.transforms as transforms
38-
39-
4041
def confidence_ellipse(x, y, ax, n_std=3.0, facecolor='none', **kwargs):
4142
"""
4243
Create a plot of the covariance confidence ellipse of `x` and `y`

0 commit comments

Comments
 (0)
0