There was an error while loading. Please reload this page.
2 parents 4432fda + aa0a2dd commit 8392fadCopy full SHA for 8392fad
2 files changed
lib/matplotlib/scale.py
@@ -29,13 +29,14 @@ def __init__(self, axis, **kwargs):
29
r"""
30
Construct a new scale.
31
32
- Note
33
- ----
+ Notes
+ -----
34
The following note is for scale implementors.
35
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.
+ For back-compatibility reasons, scales take an `~matplotlib.axis.Axis`
+ object as first argument. However, this argument should not
+ be used: a single scale object should be usable by multiple
39
+ `~matplotlib.axis.Axis`\es at the same time.
40
"""
41
42
def get_transform(self):
@@ -71,6 +72,14 @@ class LinearScale(ScaleBase):
71
72
73
name = 'linear'
74
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
+
83
def set_default_locators_and_formatters(self, axis):
84
85
Set the locators and formatters to reasonable defaults for
lib/mpl_toolkits/mplot3d/axes3d.py
@@ -840,6 +840,7 @@ def set_zscale(self, value, **kwargs):
840
ACCEPTS: [%(scale)s]
841
842
Different kwargs are accepted, depending on the scale:
843
844
%(scale_docs)s
845
846
.. note ::
0 commit comments