Skip to content

Commit 959aae9

Browse files
committed
Merge branch 'math_prime' of https://github.com/mdboom/matplotlib into mdboom-math_prime
2 parents 4647c14 + 139d969 commit 959aae9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/_mathtext_data.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,6 @@
160160
r'\nwarrow' : ('cmsy10', 65),
161161
r'\swarrow' : ('cmsy10', 116),
162162
r'\propto' : ('cmsy10', 15),
163-
r'\prime' : ('cmsy10', 73),
164-
r"'" : ('cmsy10', 73),
165163
r'\infty' : ('cmsy10', 32),
166164
r'\in' : ('cmsy10', 59),
167165
r'\ni' : ('cmsy10', 122),

lib/matplotlib/mathtext.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2459,6 +2459,8 @@ def customspace(self, s, loc, toks):
24592459
def symbol(self, s, loc, toks):
24602460
# print "symbol", toks
24612461
c = toks[0]
2462+
if c == "'":
2463+
c = '\prime'
24622464
try:
24632465
char = Char(c, self.get_state())
24642466
except ValueError:

0 commit comments

Comments
 (0)