Revision: 6873
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6873&view=rev
Author:   mdboom
Date:     2009-02-04 13:22:35 +0000 (Wed, 04 Feb 2009)

Log Message:
-----------
Fix bug in mathtext related to \dots and \ldots (Thanks, Fernando Perez)

Modified Paths:
--------------
    branches/v0_98_5_maint/CHANGELOG
    branches/v0_98_5_maint/examples/pylab_examples/mathtext_examples.py
    branches/v0_98_5_maint/lib/matplotlib/_mathtext_data.py
    branches/v0_98_5_maint/lib/matplotlib/mathtext.py

Modified: branches/v0_98_5_maint/CHANGELOG
===================================================================
--- branches/v0_98_5_maint/CHANGELOG    2009-02-03 22:29:30 UTC (rev 6872)
+++ branches/v0_98_5_maint/CHANGELOG    2009-02-04 13:22:35 UTC (rev 6873)
@@ -1,3 +1,5 @@
+2009-02-04 Fix bug in mathtext related to \dots and \ldots - MGD
+
 2009-01-29 Document 'resolution' kwarg for polar plots.  Support it
            when using pyplot.polar, not just Figure.add_axes. - MGD
 

Modified: branches/v0_98_5_maint/examples/pylab_examples/mathtext_examples.py
===================================================================
--- branches/v0_98_5_maint/examples/pylab_examples/mathtext_examples.py 
2009-02-03 22:29:30 UTC (rev 6872)
+++ branches/v0_98_5_maint/examples/pylab_examples/mathtext_examples.py 
2009-02-04 13:22:35 UTC (rev 6873)
@@ -5,6 +5,7 @@
 import gc
 
 stests = [
+    r'$a+b+\dots+\dot{s}+\ldots$',
     r'$x \doteq y$',
     r'\$100.00 $\alpha \_$',
     r'$\frac{\$100.00}{y}$',

Modified: branches/v0_98_5_maint/lib/matplotlib/_mathtext_data.py
===================================================================
--- branches/v0_98_5_maint/lib/matplotlib/_mathtext_data.py     2009-02-03 
22:29:30 UTC (rev 6872)
+++ branches/v0_98_5_maint/lib/matplotlib/_mathtext_data.py     2009-02-04 
13:22:35 UTC (rev 6873)
@@ -1805,7 +1805,7 @@
 'Game': 0x2141,
 'hbar': 0x0127,
 'hslash': 0x210f,
-'ldots': 0x22ef,
+'ldots': 0x2026,
 'vdots': 0x22ee,
 'doteqdot': 0x2251,
 'doteq': 8784,
@@ -2100,7 +2100,7 @@
 'propto': 8733,
 'pi': 960,
 'pm': 177,
-'dots': 8230,
+'dots': 0x2026,
 'nrightarrow': 8603,
 'textasciiacute': 180,
 'Doteq': 8785,

Modified: branches/v0_98_5_maint/lib/matplotlib/mathtext.py
===================================================================
--- branches/v0_98_5_maint/lib/matplotlib/mathtext.py   2009-02-03 22:29:30 UTC 
(rev 6872)
+++ branches/v0_98_5_maint/lib/matplotlib/mathtext.py   2009-02-04 13:22:35 UTC 
(rev 6873)
@@ -2035,7 +2035,7 @@
       \sqsubset       \sqsupset        \neq             \smile
       \sqsubseteq     \sqsupseteq      \doteq           \frown
       \in             \ni              \propto
-      \vdash          \dashv'''.split())
+      \vdash          \dashv           \dots'''.split())
 
     _arrow_symbols = set(r'''
       \leftarrow              \longleftarrow           \uparrow
@@ -2178,9 +2178,9 @@
                      + (group | Error("Expected \sqrt{value}"))
                      ).setParseAction(self.sqrt).setName("sqrt")
 
-        placeable   <<(accent
-                     ^ function
+        placeable   <<(function
                      ^ (c_over_c | symbol)
+                     ^ accent
                      ^ group
                      ^ frac
                      ^ sqrt


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to