Revision: 3713
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3713&view=rev
Author: dsdale
Date: 2007-08-16 14:48:52 -0700 (Thu, 16 Aug 2007)
Log Message:
-----------
fic bug in traited config: mathtext settings
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/config/mplconfig.py
Modified: trunk/matplotlib/lib/matplotlib/config/mplconfig.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/config/mplconfig.py 2007-08-16 21:28:24 UTC
(rev 3712)
+++ trunk/matplotlib/lib/matplotlib/config/mplconfig.py 2007-08-16 21:48:52 UTC
(rev 3713)
@@ -159,6 +159,16 @@
unicode = T.false
preamble = T.ListStr([])
dvipnghack = T.false
+
+ class mathtext(TConfig):
+ cal = T.Trait('cursive', 'cursive', 'normal', 'normal')
+ rm = T.Trait('serif', 'serif', 'normal', 'normal')
+ tt = T.Trait('monospace', 'monospace', 'normal', 'normal')
+ it = T.Trait('serif', 'serif', 'normal', 'italic')
+ bf = T.Trait('serif', 'serif', 'bold', 'normal')
+ sf = T.Trait('sans-serif', 'sans-serif', 'normal', 'normal')
+ use_cm = T.true
+ fallback_to_cm = T.true
class axes(TConfig):
hold = T.Trait(True, mplT.BoolHandler())
@@ -329,6 +339,15 @@
'text.latex.preamble' : (self.tconfig.text.latex, 'preamble'),
'text.dvipnghack' : (self.tconfig.text.latex, 'dvipnghack'),
'text.markup' : (self.tconfig.text, 'markup'),
+
+ 'mathtext.cal' : (self.tconfig.mathtext, 'cal'),
+ 'mathtext.rm' : (self.tconfig.mathtext, 'rm'),
+ 'mathtext.tt' : (self.tconfig.mathtext, 'tt'),
+ 'mathtext.it' : (self.tconfig.mathtext, 'it'),
+ 'mathtext.bf' : (self.tconfig.mathtext, 'bf'),
+ 'mathtext.sf' : (self.tconfig.mathtext, 'sf'),
+ 'mathtext.use_cm' : (self.tconfig.mathtext, 'use_cm'),
+ 'mathtext.fallback_to_cm' : (self.tconfig.mathtext, 'fallback_to_cm'),
'image.aspect' : (self.tconfig.image, 'aspect'),
'image.interpolation' : (self.tconfig.image, 'interpolation'),
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: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins