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

Skip to content

Commit aa0a2dd

Browse files
committed
Fix a warning in the doc build.
1 parent e9b8d3f commit aa0a2dd

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

lib/matplotlib/scale.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@ def __init__(self, axis, **kwargs):
2929
r"""
3030
Construct a new scale.
3131
32-
Note
33-
----
32+
Notes
33+
-----
3434
The following note is for scale implementors.
3535
36-
For back-compatibility reasons, scales take an `~.Axis` object as first
37-
argument. However, this argument should not be used: a single scale
38-
object should be usable by multiple `~.Axis`\es at the same time.
36+
For back-compatibility reasons, scales take an `~matplotlib.axis.Axis`
37+
object as first argument. However, this argument should not
38+
be used: a single scale object should be usable by multiple
39+
`~matplotlib.axis.Axis`\es at the same time.
3940
"""
4041

4142
def get_transform(self):
@@ -71,6 +72,14 @@ class LinearScale(ScaleBase):
7172

7273
name = 'linear'
7374

75+
def __init__(self, axis, **kwargs):
76+
# This method is present only to prevent inheritance of the base class'
77+
# constructor docstring, which would otherwise end up interpolated into
78+
# the docstring of Axis.set_scale.
79+
"""
80+
"""
81+
super().__init__(axis, **kwargs)
82+
7483
def set_default_locators_and_formatters(self, axis):
7584
"""
7685
Set the locators and formatters to reasonable defaults for

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,7 @@ def set_zscale(self, value, **kwargs):
840840
ACCEPTS: [%(scale)s]
841841
842842
Different kwargs are accepted, depending on the scale:
843+
843844
%(scale_docs)s
844845
845846
.. note ::

0 commit comments

Comments
 (0)