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

Skip to content

Commit 7dca5a0

Browse files
committed
Fix warnings in cbook
Deprecation examples and a line continuation
1 parent b9ac3fc commit 7dca5a0

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

lib/matplotlib/cbook.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,12 @@ def new_function():
122122
123123
Examples
124124
--------
125-
# To warn of the deprecation of "matplotlib.name_of_module"
126-
warn_deprecated('1.4.0', name='matplotlib.name_of_module',
127-
obj_type='module')
125+
126+
Basic example::
127+
128+
# To warn of the deprecation of "matplotlib.name_of_module"
129+
warn_deprecated('1.4.0', name='matplotlib.name_of_module',
130+
obj_type='module')
128131
129132
"""
130133
message = _generate_deprecation_message(
@@ -174,9 +177,12 @@ def new_function():
174177
175178
Examples
176179
--------
177-
@deprecated('1.4.0')
178-
def the_function_to_deprecate():
179-
pass
180+
181+
Basic example::
182+
183+
@deprecated('1.4.0')
184+
def the_function_to_deprecate():
185+
pass
180186
181187
"""
182188
def deprecate(func, message=message, name=name, alternative=alternative,
@@ -1911,7 +1917,7 @@ def boxplot_stats(X, whis=1.5, bootstrap=None, labels=None):
19111917
19121918
General approach from:
19131919
McGill, R., Tukey, J.W., and Larsen, W.A. (1978) "Variations of
1914-
Boxplots", The American Statistician, 32:12-16.
1920+
Boxplots", The American Statistician, 32:12-16.
19151921
19161922
'''
19171923

0 commit comments

Comments
 (0)