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

Skip to content

Commit 7768616

Browse files
committed
added pyparsing/mathtext enhancements
svn path=/trunk/matplotlib/; revision=1927
1 parent c73a5d4 commit 7768616

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

CHANGELOG

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
2005-12-20 Added Jouni's rc patch to support lists of keys to set on -
44
JDH
55

6-
2005-12-12 Updated pyparsing (mathtext now a bit faster) and minor
7-
fixes to scipy numerix and setuptools
6+
2005-12-12 Updated pyparsing and mathtext for some speed enhancements
7+
(Thanks Paul McGuire) and minor fixes to scipy numerix and
8+
setuptools
89

910
2005-12-12 Matplotlib data is now installed as package_data in
1011
the matplotlib module. This gets rid of checking the

lib/matplotlib/figure.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""
2+
Figure class -- add docstring here!
3+
"""
14
import sys
25
from artist import Artist
36
from axes import Axes, Subplot, PolarSubplot, PolarAxes

lib/matplotlib/mathtext.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,7 @@ def subsuperscript(self, s, loc, toks):
12571257

12581258
space = FollowedBy(bslash) + (Literal(r'\ ') | Literal(r'\/') | Group(Literal(r'\hspace{') + number + Literal('}'))).setParseAction(handler.space).setName('space')
12591259

1260-
_symbol = Regex("("+")|(".join(
1260+
symbol = Regex("("+")|(".join(
12611261
[
12621262
r"\\[a-zA-Z0-9]+(?!{)",
12631263
r"[a-zA-Z0-9 ]",
@@ -1267,10 +1267,10 @@ def subsuperscript(self, s, loc, toks):
12671267
r"[!@%&]",
12681268
r"[[\]()]",
12691269
])+")"
1270-
)
1270+
).setParseAction(handler.symbol).leaveWhitespace()
12711271

12721272
#~ symbol = (texsym ^ char ^ binop ^ relation ^ punctuation ^ misc ^ grouping ).setParseAction(handler.symbol).leaveWhitespace()
1273-
symbol = (texsym | char | binop | relation | punctuation | misc | grouping ).setParseAction(handler.symbol).leaveWhitespace()
1273+
_symbol = (texsym | char | binop | relation | punctuation | misc | grouping ).setParseAction(handler.symbol).leaveWhitespace()
12741274

12751275
subscript = Forward().setParseAction(handler.subscript).setName("subscript")
12761276
superscript = Forward().setParseAction(handler.superscript).setName("superscript")

0 commit comments

Comments
 (0)