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

Skip to content

Commit f189325

Browse files
committed
Updated kde tests in test_mlab.py to reflect changes to imports in test_mlab.py
Fixed a syntax error in python 3 and fixed up some violinplot tests. Fixed some style problems. Removed course-related test from list of tests.
1 parent 11aee86 commit f189325

36 files changed

+18
-10459
lines changed

lib/matplotlib/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,6 @@ def tk_window_focus():
13601360
'matplotlib.tests.test_tightlayout',
13611361
'matplotlib.tests.test_transforms',
13621362
'matplotlib.tests.test_triangulation',
1363-
'matplotlib.tests.test_vpcoverage',
13641363
]
13651364

13661365

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6777,8 +6777,8 @@ def violinplot(self, dataset, positions=None, vert=True, widths=0.5,
67776777
bw_method : str, scalar or callable, optional
67786778
The method used to calculate the estimator bandwidth. This can be
67796779
'scott', 'silverman', a scalar constant or a callable. If a
6780-
scalar, this will be used directly as `kde.factor`. If a
6781-
callable, it should take a `GaussianKDE` instance as only
6780+
scalar, this will be used directly as `kde.factor`. If a
6781+
callable, it should take a `GaussianKDE` instance as only
67826782
parameter and return a scalar. If None (default), 'scott' is used.
67836783
67846784
Returns
@@ -6904,7 +6904,6 @@ def violinplot(self, dataset, positions=None, vert=True, widths=0.5,
69046904

69056905
return artists
69066906

6907-
69086907
def tricontour(self, *args, **kwargs):
69096908
return mtri.tricontour(self, *args, **kwargs)
69106909
tricontour.__doc__ = mtri.TriContourSet.tricontour_doc

lib/matplotlib/mlab.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3673,8 +3673,8 @@ class GaussianKDE(object):
36733673
bw_method : str, scalar or callable, optional
36743674
The method used to calculate the estimator bandwidth. This can be
36753675
'scott', 'silverman', a scalar constant or a callable. If a
3676-
scalar, this will be used directly as `kde.factor`. If a
3677-
callable, it should take a `GaussianKDE` instance as only
3676+
scalar, this will be used directly as `kde.factor`. If a
3677+
callable, it should take a `GaussianKDE` instance as only
36783678
parameter and return a scalar. If None (default), 'scott' is used.
36793679
36803680
Attributes
@@ -3703,7 +3703,7 @@ class GaussianKDE(object):
37033703
-------
37043704
kde.evaluate(points) : ndarray
37053705
Evaluate the estimated pdf on a provided set of points.
3706-
3706+
37073707
kde(points) : ndarray
37083708
Same as kde.evaluate(points)
37093709
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)