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

Skip to content

Commit 674ee51

Browse files
committed
Merge pull request matplotlib#502 from jkseppan/issue-499
Fix mathtext errors in angle_helper.py
2 parents 330d780 + 9b86e21 commit 674ee51

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/mpl_toolkits/axisartist/angle_helper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,9 @@ def __call__(self, direction, factor, values):
325325
return [r"$%s^{\circ}$" % (str(v),) for v in ss*values]
326326

327327
class FormatterHMS(FormatterDMS):
328-
deg_mark = "^{\mathrm h}"
329-
min_mark = "^{\mathrm m}"
330-
sec_mark = "^{\mathrm s}"
328+
deg_mark = "^\mathrm{h}"
329+
min_mark = "^\mathrm{m}"
330+
sec_mark = "^\mathrm{s}"
331331

332332
fmt_d = "$%d"+deg_mark+"$"
333333
fmt_ds = r"$%d.\!\!"+deg_mark+"%s$"

0 commit comments

Comments
 (0)