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

Skip to content

Commit 139d969

Browse files
committed
Sage Ticket #10717: Prime typeset badly on plots
Supported by Sage Days 29
1 parent 3bf76b9 commit 139d969

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
@@ -2456,6 +2456,8 @@ def customspace(self, s, loc, toks):
24562456
def symbol(self, s, loc, toks):
24572457
# print "symbol", toks
24582458
c = toks[0]
2459+
if c == "'":
2460+
c = '\prime'
24592461
try:
24602462
char = Char(c, self.get_state())
24612463
except ValueError:

0 commit comments

Comments
 (0)