From: <md...@us...> - 2008-10-01 14:20:47
|
Revision: 6141 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6141&view=rev Author: mdboom Date: 2008-10-01 14:20:28 +0000 (Wed, 01 Oct 2008) Log Message: ----------- [ 2107138 ] x/yticklabels return value incorrect Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/axis.py trunk/matplotlib/lib/matplotlib/text.py Modified: trunk/matplotlib/lib/matplotlib/axis.py =================================================================== --- trunk/matplotlib/lib/matplotlib/axis.py 2008-10-01 08:04:02 UTC (rev 6140) +++ trunk/matplotlib/lib/matplotlib/axis.py 2008-10-01 14:20:28 UTC (rev 6141) @@ -239,14 +239,12 @@ #t = mtext.Text( trans, vert, horiz = self.axes.get_xaxis_text1_transform(self._pad) size = rcParams['xtick.labelsize'] - t = mtext.TextWithDash( + t = mtext.Text( x=0, y=0, fontproperties=font_manager.FontProperties(size=size), color=rcParams['xtick.color'], verticalalignment=vert, horizontalalignment=horiz, - dashdirection=0, - xaxis=True, ) t.set_transform(trans) @@ -261,13 +259,11 @@ #t = mtext.Text( trans, vert, horiz = self.axes.get_xaxis_text2_transform(self._pad) - t = mtext.TextWithDash( + t = mtext.Text( x=0, y=1, fontproperties=font_manager.FontProperties(size=rcParams['xtick.labelsize']), color=rcParams['xtick.color'], verticalalignment=vert, - dashdirection=1, - xaxis=True, horizontalalignment=horiz, ) t.set_transform(trans) @@ -374,14 +370,12 @@ #t = mtext.Text( trans, vert, horiz = self.axes.get_yaxis_text1_transform(self._pad) - t = mtext.TextWithDash( + t = mtext.Text( x=0, y=0, fontproperties=font_manager.FontProperties(size=rcParams['ytick.labelsize']), color=rcParams['ytick.color'], verticalalignment=vert, horizontalalignment=horiz, - dashdirection=0, - xaxis=False, ) t.set_transform(trans) #t.set_transform( self.axes.transData ) @@ -394,13 +388,11 @@ #t = mtext.Text( trans, vert, horiz = self.axes.get_yaxis_text2_transform(self._pad) - t = mtext.TextWithDash( + t = mtext.Text( x=1, y=0, fontproperties=font_manager.FontProperties(size=rcParams['ytick.labelsize']), color=rcParams['ytick.color'], verticalalignment=vert, - dashdirection=1, - xaxis=False, horizontalalignment=horiz, ) t.set_transform(trans) Modified: trunk/matplotlib/lib/matplotlib/text.py =================================================================== --- trunk/matplotlib/lib/matplotlib/text.py 2008-10-01 08:04:02 UTC (rev 6140) +++ trunk/matplotlib/lib/matplotlib/text.py 2008-10-01 14:20:28 UTC (rev 6141) @@ -846,7 +846,6 @@ dashrotation=None, dashpad=3, dashpush=0, - xaxis=True, ): Text.__init__(self, x=x, y=y, text=text, color=color, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |