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

Skip to content

Commit f0260a0

Browse files
committed
FIX: remove Locator and Formatter options
1 parent ba7fbb0 commit f0260a0

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

lib/matplotlib/scale.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,7 @@ class ArbitraryScale(ScaleBase):
124124

125125
name = 'arbitrary'
126126

127-
def __init__(self, axis, functions, *,
128-
major_locator=AutoLocator(),
129-
minor_locator=NullLocator(),
130-
major_formatter=ScalarFormatter(),
131-
minor_formatter=NullFormatter()):
127+
def __init__(self, axis, functions):
132128
"""
133129
Parameters
134130
----------
@@ -138,22 +134,6 @@ def __init__(self, axis, functions, *,
138134
functions: (forward, inverse)
139135
two-tuple of the forward and inverse functions for the scale.
140136
141-
major_locator: `~matplotlib.ticker.Locator`
142-
optional, allows passing major locator for the axis. Defaults to
143-
`~matplotlib.ticker.AutoLocator`
144-
145-
minor_locator: `~matplotlib.ticker.Locator`
146-
optional, allows passing major locator for the axis. Defaults to
147-
`~matplotlib.ticker.NullLocator`
148-
149-
major_formatter: `~matplotlib.ticker.Formatter`
150-
optional, allows passing major formatter for the axis. Defaults to
151-
`~matplotlib.ticker.ScalarFormatter`
152-
153-
minor_formatter: `~matplotlib.ticker.Formatter`
154-
optional, allows passing maino formatter for the axis. Defaults to
155-
`~matplotlib.ticker.NullFormatter`
156-
157137
Examples
158138
--------
159139

0 commit comments

Comments
 (0)