Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit efefa33

Browse filesBrowse files
committed
Make get_scale_docs() internal
1 parent bcb372b commit efefa33
Copy full SHA for efefa33

File tree

Expand file treeCollapse file tree

2 files changed

+17
-1
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+17
-1
lines changed
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Deprecations
2+
````````````
3+
4+
The function ``matplotlib.scale.get_scale_docs()`` and its alias
5+
``matplotlib.pyplot.get_scale_docs()`` are considered internal and will be
6+
removed from the public API in a future version.

‎lib/matplotlib/scale.py

Copy file name to clipboardExpand all lines: lib/matplotlib/scale.py
+11-1Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,17 @@ def register_scale(scale_class):
579579
_scale_mapping[scale_class.name] = scale_class
580580

581581

582+
@cbook.deprecated(
583+
'3.1', message='get_scale_docs() is considered private API since '
584+
'3.1 and will be removed from the public API in 3.3.')
582585
def get_scale_docs():
586+
"""
587+
Helper function for generating docstrings related to scales.
588+
"""
589+
return _get_scale_docs()
590+
591+
592+
def _get_scale_docs():
583593
"""
584594
Helper function for generating docstrings related to scales.
585595
"""
@@ -598,5 +608,5 @@ def get_scale_docs():
598608

599609
docstring.interpd.update(
600610
scale=' | '.join([repr(x) for x in get_scale_names()]),
601-
scale_docs=get_scale_docs().rstrip(),
611+
scale_docs=_get_scale_docs().rstrip(),
602612
)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.