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

Skip to content

Commit 66bd9bc

Browse files
committed
added a chance for polar with usetex to remove unicode symbol
svn path=/trunk/matplotlib/; revision=6452
1 parent 29285f9 commit 66bd9bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/projections/polar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class ThetaFormatter(Formatter):
136136
"""
137137
def __call__(self, x, pos=None):
138138
# \u00b0 : degree symbol
139-
if rcParams['text.usetex']:
139+
if rcParams['text.usetex'] and not rcParams['text.latex.unicode']:
140140
return r"$%d^\circ$" % ((x / npy.pi) * 180.0)
141141
else:
142142
return u"%d\u00b0" % ((x / npy.pi) * 180.0)

0 commit comments

Comments
 (0)