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

Skip to content

Commit ba1c2c1

Browse files
committed
Fix bug in mathtext related to \dots and \ldots (Thanks, Fernando Perez)
svn path=/branches/v0_98_5_maint/; revision=6873
1 parent b261061 commit ba1c2c1

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2009-02-04 Fix bug in mathtext related to \dots and \ldots - MGD
2+
13
2009-01-29 Document 'resolution' kwarg for polar plots. Support it
24
when using pyplot.polar, not just Figure.add_axes. - MGD
35

examples/pylab_examples/mathtext_examples.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import gc
66

77
stests = [
8+
r'$a+b+\dots+\dot{s}+\ldots$',
89
r'$x \doteq y$',
910
r'\$100.00 $\alpha \_$',
1011
r'$\frac{\$100.00}{y}$',

lib/matplotlib/_mathtext_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1805,7 +1805,7 @@
18051805
'Game': 0x2141,
18061806
'hbar': 0x0127,
18071807
'hslash': 0x210f,
1808-
'ldots': 0x22ef,
1808+
'ldots': 0x2026,
18091809
'vdots': 0x22ee,
18101810
'doteqdot': 0x2251,
18111811
'doteq': 8784,
@@ -2100,7 +2100,7 @@
21002100
'propto': 8733,
21012101
'pi': 960,
21022102
'pm': 177,
2103-
'dots': 8230,
2103+
'dots': 0x2026,
21042104
'nrightarrow': 8603,
21052105
'textasciiacute': 180,
21062106
'Doteq': 8785,

lib/matplotlib/mathtext.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2035,7 +2035,7 @@ class Parser(object):
20352035
\sqsubset \sqsupset \neq \smile
20362036
\sqsubseteq \sqsupseteq \doteq \frown
20372037
\in \ni \propto
2038-
\vdash \dashv'''.split())
2038+
\vdash \dashv \dots'''.split())
20392039

20402040
_arrow_symbols = set(r'''
20412041
\leftarrow \longleftarrow \uparrow
@@ -2178,9 +2178,9 @@ def __init__(self):
21782178
+ (group | Error("Expected \sqrt{value}"))
21792179
).setParseAction(self.sqrt).setName("sqrt")
21802180

2181-
placeable <<(accent
2182-
^ function
2181+
placeable <<(function
21832182
^ (c_over_c | symbol)
2183+
^ accent
21842184
^ group
21852185
^ frac
21862186
^ sqrt

0 commit comments

Comments
 (0)