Revision: 4985
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4985&view=rev
Author:   mdboom
Date:     2008-02-21 11:13:14 -0800 (Thu, 21 Feb 2008)

Log Message:
-----------
Remove case-sensitivity for backend selection.  (Not a user-visible problem)

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/mathtext.py

Modified: trunk/matplotlib/lib/matplotlib/mathtext.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/mathtext.py 2008-02-20 14:11:59 UTC (rev 
4984)
+++ trunk/matplotlib/lib/matplotlib/mathtext.py 2008-02-21 19:13:14 UTC (rev 
4985)
@@ -2656,12 +2656,12 @@
     _parser = None
 
     _backend_mapping = {
-        'Bitmap': MathtextBackendBitmap,
-        'Agg'   : MathtextBackendAgg,
-        'PS'    : MathtextBackendPs,
-        'Pdf'   : MathtextBackendPdf,
-        'SVG'   : MathtextBackendSvg,
-        'Cairo' : MathtextBackendCairo
+        'bitmap': MathtextBackendBitmap,
+        'agg'   : MathtextBackendAgg,
+        'ps'    : MathtextBackendPs,
+        'pdf'   : MathtextBackendPdf,
+        'svg'   : MathtextBackendSvg,
+        'cairo' : MathtextBackendCairo
         }
 
     _font_type_mapping = {
@@ -2672,7 +2672,7 @@
         }
 
     def __init__(self, output):
-        self._output = output
+        self._output = output.lower()
         self._cache = maxdict(50)
 
     def parse(self, s, dpi = 72, prop = None):
@@ -2689,7 +2689,7 @@
         else:
             backend = self._backend_mapping[self._output]()
             fontset = rcParams['mathtext.fontset']
-            fontset_class = self._font_type_mapping.get(fontset)
+            fontset_class = self._font_type_mapping.get(fontset.lower())
             if fontset_class is not None:
                 font_output = fontset_class(prop, backend)
             else:


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to