SourceForge logo
SourceForge logo
Menu

matplotlib-checkins

Revision: 4854
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4854&view=rev
Author: mdboom
Date: 2008年01月10日 08:37:18 -0800 (2008年1月10日)
Log Message:
-----------
Fix display of '[' and ']' in mathtext.
Modified Paths:
--------------
 branches/v0_91_maint/lib/matplotlib/mathtext.py
Modified: branches/v0_91_maint/lib/matplotlib/mathtext.py
===================================================================
--- branches/v0_91_maint/lib/matplotlib/mathtext.py	2008年01月10日 16:01:02 UTC (rev 4853)
+++ branches/v0_91_maint/lib/matplotlib/mathtext.py	2008年01月10日 16:37:18 UTC (rev 4854)
@@ -2058,7 +2058,7 @@
 ).setParseAction(self.customspace).setName('customspace')
 
 unicode_range = u"\U00000080-\U0001ffff"
- symbol =(Regex(UR"([a-zA-Z0-9 +\-*/<>=:,.;!'@()|%s])|(\\[%%${}\[\]_|])" % unicode_range)
+ symbol =(Regex(UR"([a-zA-Z0-9 +\-*/<>=:,.;!'@()\[\]|%s])|(\\[%%${}\[\]_|])" % unicode_range)
 | Combine(
 bslash
 + oneOf(tex2uni.keys())
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 4927
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4927&view=rev
Author: mdboom
Date: 2008年02月01日 11:13:09 -0800 (2008年2月01日)
Log Message:
-----------
Fix doubly-included fonts in Postscript files.
Modified Paths:
--------------
 branches/v0_91_maint/lib/matplotlib/mathtext.py
Modified: branches/v0_91_maint/lib/matplotlib/mathtext.py
===================================================================
--- branches/v0_91_maint/lib/matplotlib/mathtext.py	2008年02月01日 18:39:59 UTC (rev 4926)
+++ branches/v0_91_maint/lib/matplotlib/mathtext.py	2008年02月01日 19:13:09 UTC (rev 4927)
@@ -552,7 +552,6 @@
 A generic base class for all font setups that use Truetype fonts
 (through ft2font)
 """
- basepath = os.path.join( get_data_path(), 'fonts' )
 _fonts = {}
 
 class CachedFont:
@@ -686,7 +685,7 @@
 TruetypeFonts.__init__(self, *args, **kwargs)
 if not len(self.fontmap):
 for key, val in self._fontmap.iteritems():
- fullpath = os.path.join(self.basepath, 'ttf', val + ".ttf")
+ fullpath = findfont(val)
 self.fontmap[key] = fullpath
 self.fontmap[val] = fullpath
 
@@ -913,7 +912,7 @@
 TruetypeFonts.__init__(self, *args, **kwargs)
 if not len(self.fontmap):
 for key, name in self._fontmap.iteritems():
- fullpath = os.path.join(self.basepath, 'ttf', name + ".ttf")
+ fullpath = findfont(name)
 self.fontmap[key] = fullpath
 self.fontmap[name] = fullpath
 
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 5089
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5089&view=rev
Author: mdboom
Date: 2008年04月28日 06:41:28 -0700 (2008年4月28日)
Log Message:
-----------
Fix bug where fraction beams were too wide at lower dpi's. Fix
sub/superscript placement at different dpi's.
Modified Paths:
--------------
 branches/v0_91_maint/lib/matplotlib/mathtext.py
Modified: branches/v0_91_maint/lib/matplotlib/mathtext.py
===================================================================
--- branches/v0_91_maint/lib/matplotlib/mathtext.py	2008年04月28日 13:07:41 UTC (rev 5088)
+++ branches/v0_91_maint/lib/matplotlib/mathtext.py	2008年04月28日 13:41:28 UTC (rev 5089)
@@ -651,12 +651,12 @@
 # Some fonts don't store the xHeight, so we do a poor man's xHeight
 metrics = self.get_metrics(font, 'it', 'x', fontsize, dpi)
 return metrics.iceberg
- xHeight = (pclt['xHeight'] / 64.0) * (fontsize / 12.0)
+ xHeight = (pclt['xHeight'] / 64.0) * (fontsize / 12.0) * (dpi / 100.0)
 return xHeight
 
 def get_underline_thickness(self, font, fontsize, dpi):
 cached_font = self._get_font(font)
- return max(1.0, cached_font.font.underline_thickness / 64.0 / fontsize * 10.0)
+ return cached_font.font.underline_thickness / 64.0 / fontsize * (10.0 * dpi / 100.0)
 
 def get_kern(self, font1, fontclass1, sym1, fontsize1,
 font2, fontclass2, sym2, fontsize2, dpi):
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 によって変換されたページ (->オリジナル) /