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

Skip to content

Commit b8dde01

Browse files
committed
Review action.
1 parent d5e48d0 commit b8dde01

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/matplotlib/ticker.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -696,24 +696,24 @@ def __call__(self, x, pos=None):
696696
if b % 1 == 0.0:
697697
base = '%d' % b
698698
else:
699-
base = '%s' % b
699+
base = '%s' % b
700700

701701
if not is_decade and self.labelOnlyBase:
702702
return ''
703703
elif not is_decade:
704704
if usetex:
705-
return (r'$%s' + base + r'^{%.2f}$') % \
706-
(sign_string, fx)
705+
return (r'$%s%s^{%.2f}$') % \
706+
(sign_string, base, fx)
707707
else:
708-
return ('$\mathdefault{%s' + base + '^{%.2f}}$') % \
709-
(sign_string, fx)
708+
return ('$\mathdefault{%s%s^{%.2f}}$') % \
709+
(sign_string, base, fx)
710710
else:
711711
if usetex:
712-
return (r'$%s' + base + r'^{%d}$') % \
713-
(sign_string, nearest_long(fx))
712+
return (r'$%s%s^{%d}$') % \
713+
(sign_string, base, nearest_long(fx))
714714
else:
715-
return (r'$\mathdefault{%s' + base + r'^{%d}}$') % \
716-
(sign_string, nearest_long(fx))
715+
return (r'$\mathdefault{%s%s^{%d}}$') % \
716+
(sign_string, base, nearest_long(fx))
717717

718718

719719
class EngFormatter(Formatter):

0 commit comments

Comments
 (0)