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 (Tue, 13 Jul 2010) 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 (Thu, 09 Dec 2010) 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 (Tue, 14 Dec 2010) 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 (Wed, 29 Dec 2010) 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. |