8000 Backport PR #13950: confidence_ellipse_markup · matplotlib/matplotlib@fa8edf4 · GitHub
[go: up one dir, main page]

Skip to content

Commit fa8edf4

Browse files
Carsten SchelpMeeseeksDev[bot]
authored andcommitted
Backport PR #13950: confidence_ellipse_markup
1 parent 28f680f commit fa8edf4

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< 42A6 /span>, 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