8000 Merge branch 'v1.0.x' · matplotlib/matplotlib@578f695 · GitHub
[go: up one dir, main page]

Skip to content

Commit 578f695

Browse files
committed
Merge branch 'v1.0.x'
2 parents 2bc8ff6 + 6d3b883 commit 578f695

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/colorbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def __init__(self, ax, cmap=None,
234234
self.locator = ticks # Handle default in _ticker()
235235
if format is None:
236236
if isinstance(self.norm, colors.LogNorm):
237-
self.formatter = ticker.LogFormatter()
237+
self.formatter = ticker.LogFormatterMathtext()
238238
else:
239239
self.formatter = ticker.ScalarFormatter()
240240
elif cbook.is_string_like(format):

lib/matplotlib/ticker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def __call__(self, x, pos=None):
545545
sign = np.sign(x)
546546
# only label the decades
547547
fx = math.log(abs(x))/math.log(b)
548-
isDecade = is_decade(fx)
548+
isDecade = is_close_to_int(fx)
549549
if not isDecade and self.labelOnlyBase: s = ''
550550
elif x>10000: s= '%1.0e'%x
551551
elif x<1: s = '%1.0e'%x

0 commit comments

Comments
 (0)
0