From: <md...@us...> - 2007-11-13 16:08:26
|
Revision: 4246 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4246&view=rev Author: mdboom Date: 2007-11-13 08:08:24 -0800 (Tue, 13 Nov 2007) Log Message: ----------- Don't clip ticks. Modified Paths: -------------- branches/transforms/lib/matplotlib/axis.py Modified: branches/transforms/lib/matplotlib/axis.py =================================================================== --- branches/transforms/lib/matplotlib/axis.py 2007-11-13 16:02:47 UTC (rev 4245) +++ branches/transforms/lib/matplotlib/axis.py 2007-11-13 16:08:24 UTC (rev 4246) @@ -110,8 +110,8 @@ def set_clip_path(self, clippath, transform=None): Artist.set_clip_path(self, clippath, transform) - self.tick1line.set_clip_path(clippath, transform) - self.tick2line.set_clip_path(clippath, transform) + #self.tick1line.set_clip_path(clippath, transform) + #self.tick2line.set_clip_path(clippath, transform) self.gridline.set_clip_path(clippath, transform) set_clip_path.__doc__ = Artist.set_clip_path.__doc__ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <md...@us...> - 2007-12-04 21:30:10
|
Revision: 4602 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4602&view=rev Author: mdboom Date: 2007-12-04 13:30:06 -0800 (Tue, 04 Dec 2007) Log Message: ----------- Bugfix. Modified Paths: -------------- branches/transforms/lib/matplotlib/axis.py Modified: branches/transforms/lib/matplotlib/axis.py =================================================================== --- branches/transforms/lib/matplotlib/axis.py 2007-12-04 20:56:05 UTC (rev 4601) +++ branches/transforms/lib/matplotlib/axis.py 2007-12-04 21:30:06 UTC (rev 4602) @@ -1125,7 +1125,7 @@ if not len(bboxes2): top = self.axes.bbox.ymax else: - bbox = bbox_union(bboxes2) + bbox = Bbox.union(bboxes2) top = bbox.y1 self.label.set_position( (x, top+self.LABELPAD*self.figure.dpi / 72.0)) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <md...@us...> - 2007-12-20 16:54:52
|
Revision: 4779 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4779&view=rev Author: mdboom Date: 2007-12-20 08:54:34 -0800 (Thu, 20 Dec 2007) Log Message: ----------- Minor speedup by not calculating the position of ticks/grids/text that aren't there. Modified Paths: -------------- branches/transforms/lib/matplotlib/axis.py Modified: branches/transforms/lib/matplotlib/axis.py =================================================================== --- branches/transforms/lib/matplotlib/axis.py 2007-12-20 13:01:07 UTC (rev 4778) +++ branches/transforms/lib/matplotlib/axis.py 2007-12-20 16:54:34 UTC (rev 4779) @@ -94,14 +94,14 @@ self.label = self.label1 # legacy name self.label2 = self._get_text2() - self.update_position(loc) - self.gridOn = gridOn self.tick1On = tick1On self.tick2On = tick2On self.label1On = label1On self.label2On = label2On + self.update_position(loc) + def get_children(self): children = [self.tick1line, self.tick2line, self.gridline, self.label1, self.label2] return children @@ -304,11 +304,16 @@ 'Set the location of tick in data coords with scalar loc' x = loc - self.tick1line.set_xdata((x,)) - self.tick2line.set_xdata((x,)) - self.gridline.set_xdata((x, )) - self.label1.set_x(x) - self.label2.set_x(x) + if self.tick1On: + self.tick1line.set_xdata((x,)) + if self.tick2On: + self.tick2line.set_xdata((x,)) + if self.gridOn: + self.gridline.set_xdata((x,)) + if self.label1On: + self.label1.set_x(x) + if self.label2On: + self.label2.set_x(x) self._loc = loc def get_view_interval(self): @@ -420,13 +425,16 @@ def update_position(self, loc): 'Set the location of tick in data coords with scalar loc' y = loc - self.tick1line.set_ydata((y,)) - self.tick2line.set_ydata((y,)) - self.gridline.set_ydata((y, )) - - self.label1.set_y( y ) - self.label2.set_y( y ) - + if self.tick1On: + self.tick1line.set_ydata((y,)) + if self.tick2On: + self.tick2line.set_ydata((y,)) + if self.gridOn: + self.gridline.set_ydata((y, )) + if self.label1On: + self.label1.set_y( y ) + if self.label2On: + self.label2.set_y( y ) self._loc = loc @@ -1231,6 +1239,8 @@ for t in ticks: t.tick1On = True t.tick2On = True + for t in ticks: + t.update_position(t._loc) def tick_top(self): 'use ticks only on top' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |