SourceForge logo
SourceForge logo
Menu

matplotlib-checkins

Revision: 3640
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3640&view=rev
Author: dsdale
Date: 2007年07月30日 14:41:09 -0700 (2007年7月30日)
Log Message:
-----------
remove a print statement in mplconfig
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年07月30日 21:37:11 UTC (rev 3639)
+++ trunk/matplotlib/lib/matplotlib/config/mplconfig.py	2007年07月30日 21:41:09 UTC (rev 3640)
@@ -462,7 +462,6 @@
 config_file = os.path.join(old_config_path, 'matplotlib.conf')
 
 if os.path.exists(old_config_file) and not os.path.exists(config_file):
- print 'convert!'
 CONVERT = True
 else:
 config_file = cutils.get_config_file(tconfig=True)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 3712
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3712&view=rev
Author: dsdale
Date: 2007年08月16日 14:28:24 -0700 (2007年8月16日)
Log Message:
-----------
fixed bug in traited config: text.markup
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日 19:43:35 UTC (rev 3711)
+++ trunk/matplotlib/lib/matplotlib/config/mplconfig.py	2007年08月16日 21:28:24 UTC (rev 3712)
@@ -328,7 +328,7 @@
 'text.latex.unicode' : (self.tconfig.text.latex, 'unicode'),
 'text.latex.preamble' : (self.tconfig.text.latex, 'preamble'),
 'text.dvipnghack' : (self.tconfig.text.latex, 'dvipnghack'),
- 'text.markup' : (self.tconfig.text.markup, 'markup'),
+ 'text.markup' : (self.tconfig.text, 'markup'),
 
 '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.
Revision: 3713
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3713&view=rev
Author: dsdale
Date: 2007年08月16日 14:48:52 -0700 (2007年8月16日)
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.
Revision: 3728
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3728&view=rev
Author: dsdale
Date: 2007年08月22日 11:43:13 -0700 (2007年8月22日)
Log Message:
-----------
add an update method to rcParamsWrapper
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月21日 19:42:28 UTC (rev 3727)
+++ trunk/matplotlib/lib/matplotlib/config/mplconfig.py	2007年08月22日 18:43:13 UTC (rev 3728)
@@ -461,7 +461,18 @@
 def has_key(self, val):
 return self.tconfig_map.has_key(val)
 
+ def update(self, arg, **kwargs):
+ try:
+ for key in arg:
+ self[key] = arg[key]
+ except AttributeError:
+ for key, val in arg:
+ self[key] = val
+ 
+ for key in kwargs:
+ self[key] = kwargs[key]
 
+
 old_config_file = cutils.get_config_file(tconfig=False)
 old_config_path = os.path.split(old_config_file)[0]
 config_file = os.path.join(old_config_path, 'matplotlib.conf')
@@ -503,8 +514,9 @@
 config_file)
 
 def rcdefaults():
+ global mplConfig
 mplConfig = MPLConfig()
- rcParams = RcParamsWrapper(mplConfig)
+ rcParams.update(rcParamsDefault)
 
 ##############################################################################
 # Auto-generate the mpl-data/matplotlib.conf
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 3730
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3730&view=rev
Author: dsdale
Date: 2007年08月22日 13:11:18 -0700 (2007年8月22日)
Log Message:
-----------
rcdefaults working with mplconfig
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月22日 19:38:08 UTC (rev 3729)
+++ trunk/matplotlib/lib/matplotlib/config/mplconfig.py	2007年08月22日 20:11:18 UTC (rev 3730)
@@ -516,10 +516,14 @@
 config_file)
 
 def rcdefaults():
- global mplConfig
- mplConfig = MPLConfig()
- rcParams.update(rcParamsDefault)
+ """
+ Restore the default rc params - the ones that were created at
+ matplotlib load time
+ """
+ for key in rcParamsDefault.keys():
+ rcParams[key] = rcParamsDefault[key]
 
+
 ##############################################################################
 # Auto-generate the mpl-data/matplotlib.conf
 ##############################################################################
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 5059
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5059&view=rev
Author: mdboom
Date: 2008年04月22日 08:03:25 -0700 (2008年4月22日)
Log Message:
-----------
Fix inconsistency between svg.embed_chars and svg.embed_char_paths
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/config/mplconfig.py
Modified: trunk/matplotlib/lib/matplotlib/config/mplconfig.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/config/mplconfig.py	2008年04月22日 15:01:00 UTC (rev 5058)
+++ trunk/matplotlib/lib/matplotlib/config/mplconfig.py	2008年04月22日 15:03:25 UTC (rev 5059)
@@ -99,7 +99,7 @@
 class svg(TConfig):
 image_inline = T.true
 image_noscale = T.false
- embed_chars = T.true
+ embed_char_paths = T.true
 
 class lines(TConfig):
 linewidth = T.Float(1.0)
@@ -437,7 +437,7 @@
 'pdf.fonttype' : (self.tconfig.backend.pdf, 'fonttype'),
 'svg.image_inline' : (self.tconfig.backend.svg, 'image_inline'),
 'svg.image_noscale' : (self.tconfig.backend.svg, 'image_noscale'),
- 'svg.embed_char_paths' : (self.tconfig.backend.svg, 'embed_chars'),
+ 'svg.embed_char_paths' : (self.tconfig.backend.svg, 'embed_char_paths'),
 
 }
 
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /