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

Skip to content

Commit 354d133

Browse files
committed
Removed use of DummyAxis for locator. Usage remains with Formatters.
1 parent 8571230 commit 354d133

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/matplotlib/contour.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -999,11 +999,9 @@ def _autolev(self, z, N):
999999
self.locator = ticker.LogLocator()
10001000
else:
10011001
self.locator = ticker.MaxNLocator(N+1)
1002-
self.locator.create_dummy_axis()
10031002
zmax = self.zmax
10041003
zmin = self.zmin
1005-
self.locator.set_bounds(zmin, zmax)
1006-
lev = self.locator()
1004+
lev = self.locator.tick_values(zmin, zmax)
10071005
self._auto = True
10081006
if self.filled:
10091007
return lev

lib/matplotlib/ticker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ class Formatter(TickHelper):
182182
locs = []
183183
def __call__(self, x, pos=None):
184184
'Return the format for tick val x at position pos; pos=None indicated unspecified'
185-
raise NotImplementedError('Derived must overide')
185+
raise NotImplementedError('Derived must override')
186186

187187
def format_data(self,value):
188188
return self.__call__(value)

0 commit comments

Comments
 (0)