SourceForge logo
SourceForge logo
Menu

matplotlib-checkins

From: <lee...@us...> - 2010年07月13日 16:39:46
Revision: 8541
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8541&view=rev
Author: leejjoon
Date: 2010年07月13日 16:39:40 +0000 (2010年7月13日)
Log Message:
-----------
Text.draw uses _set_gc_clip to set clip property
Modified Paths:
--------------
 branches/v1_0_maint/lib/matplotlib/text.py
Modified: branches/v1_0_maint/lib/matplotlib/text.py
===================================================================
--- branches/v1_0_maint/lib/matplotlib/text.py	2010年07月11日 02:29:08 UTC (rev 8540)
+++ branches/v1_0_maint/lib/matplotlib/text.py	2010年07月13日 16:39:40 UTC (rev 8541)
@@ -541,8 +541,7 @@
 gc.set_foreground(self.get_color())
 gc.set_alpha(self.get_alpha())
 gc.set_url(self._url)
- if self.get_clip_on():
- gc.set_clip_rectangle(self.clipbox)
+ self._set_gc_clip(gc)
 
 if self._bbox:
 bbox_artist(self, renderer, self._bbox)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <md...@us...> - 2010年12月09日 17:25:17
Revision: 8819
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8819&view=rev
Author: mdboom
Date: 2010年12月09日 17:25:11 +0000 (2010年12月09日)
Log Message:
-----------
[3123736] tex processor crashes when fed a space
Modified Paths:
--------------
 branches/v1_0_maint/lib/matplotlib/text.py
Modified: branches/v1_0_maint/lib/matplotlib/text.py
===================================================================
--- branches/v1_0_maint/lib/matplotlib/text.py	2010年12月06日 14:43:16 UTC (rev 8818)
+++ branches/v1_0_maint/lib/matplotlib/text.py	2010年12月09日 17:25:11 UTC (rev 8819)
@@ -551,6 +551,9 @@
 
 if rcParams['text.usetex']:
 for line, wh, x, y in info:
+ if not np.isfinite(x) or not np.isfinite(y):
+ continue
+
 x = x + posx
 y = y + posy
 if renderer.flipy():
@@ -566,6 +569,9 @@
 self._fontproperties, angle)
 else:
 for line, wh, x, y in info:
+ if not np.isfinite(x) or not np.isfinite(y):
+ continue
+
 x = x + posx
 y = y + posy
 if renderer.flipy():
@@ -974,6 +980,8 @@
 # Did we find an even number of non-escaped dollar signs?
 # If so, treat is as math text.
 if rcParams['text.usetex']:
+ if s == ' ':
+ s = r'\ '
 return s, 'TeX'
 
 if cbook.is_math_text(s):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <md...@us...> - 2010年12月14日 17:30:19
Revision: 8839
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8839&view=rev
Author: mdboom
Date: 2010年12月14日 17:30:12 +0000 (2010年12月14日)
Log Message:
-----------
Fix memory leak in text layout handling.
Modified Paths:
--------------
 branches/v1_0_maint/lib/matplotlib/text.py
Modified: branches/v1_0_maint/lib/matplotlib/text.py
===================================================================
--- branches/v1_0_maint/lib/matplotlib/text.py	2010年12月14日 15:56:25 UTC (rev 8838)
+++ branches/v1_0_maint/lib/matplotlib/text.py	2010年12月14日 17:30:12 UTC (rev 8839)
@@ -143,6 +143,9 @@
 Handle storing and drawing of text in window or data coordinates.
 """
 zorder = 3
+
+ cached = maxdict(50)
+
 def __str__(self):
 return "Text(%g,%g,%s)"%(self._y,self._y,repr(self._text))
 
@@ -168,7 +171,6 @@
 """
 
 Artist.__init__(self)
- self.cached = maxdict(5)
 self._x, self._y = x, y
 
 if color is None: color = rcParams['text.color']
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <lee...@us...> - 2010年12月29日 02:43:14
Revision: 8846
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8846&view=rev
Author: leejjoon
Date: 2010年12月29日 02:43:08 +0000 (2010年12月29日)
Log Message:
-----------
revocer the negative coordinates support of annotation
Modified Paths:
--------------
 branches/v1_0_maint/lib/matplotlib/text.py
Modified: branches/v1_0_maint/lib/matplotlib/text.py
===================================================================
--- branches/v1_0_maint/lib/matplotlib/text.py	2010年12月21日 16:28:00 UTC (rev 8845)
+++ branches/v1_0_maint/lib/matplotlib/text.py	2010年12月29日 02:43:08 UTC (rev 8846)
@@ -1443,6 +1443,9 @@
 y = float(self.convert_yunits(y))
 
 
+ if s in ['axes points', 'axes pixel', 'figure points', 'figure pixel']:
+ return self._get_xy_legacy(renderer, x, y, s)
+
 tr = self._get_xy_transform(renderer, s)
 x1, y1 = tr.transform_point((x, y))
 return x1, y1
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 によって変換されたページ (->オリジナル) /