Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dd9bcd5

Browse files
Carsten SchelpQuLogic
authored andcommitted
Fix confidence_ellipse example markup (#13950)
* confidence_ellipse.py fix markup fault The line "The plotting function itself" should be a heading. * Move some code between docstring and sphynx-markup Thanks to @jklymak for the advice. Moving the imports between the docstring and the sphynx should fix the issue.
1 parent 557cdfa commit dd9bcd5

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

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)