Some of my plots are very wide. I'd like Y axis labels on both sides so that it's clearer to read the bars towards the right hand side.
I can change the ticks with yaxis.set_ticks_position("both") but there doesn't seem to be a similar call for labels. Any ideas?
Thanks,
Peter
I don't think there is a direct support for this in mpl and I guess
only way is to adjust the parameters of each ticks.
def set_ticks_both(axis):
ticks = list( axis.majorTicks ) # a copy
ticks.extend( axis.minorTicks )
for t in ticks:
t.tick1On = True # tick marker on left (or bottom)
t.tick2On = True # tick marker on right (or top)
t.label1On = True # tick label marker on left (or bottom)
t.label2On = True # tick label on right (or top)
set_ticks_both(ax.yaxis)
-JJ
···
On Thu, Aug 27, 2009 at 7:22 AM, Peter Saffrey<pzs@...2149...> wrote:
Some of my plots are very wide. I'd like Y axis labels on both sides so
that it's clearer to read the bars towards the right hand side.
I can change the ticks with yaxis.set_ticks_position("both") but there
doesn't seem to be a similar call for labels. Any ideas?
Thanks,
Peter
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
Maybe with the new spines support in 0.99 this could be an attribute/method on the spine?
Mike
···
On 08/27/2009 02:18 PM, Jae-Joon Lee wrote:
I don't think there is a direct support for this in mpl and I guess
only way is to adjust the parameters of each ticks.
def set_ticks_both(axis):
ticks = list( axis.majorTicks ) # a copy
ticks.extend( axis.minorTicks )
for t in ticks:
t.tick1On = True # tick marker on left (or bottom)
t.tick2On = True # tick marker on right (or top)
t.label1On = True # tick label marker on left (or bottom)
t.label2On = True # tick label on right (or top)
set_ticks_both(ax.yaxis)
-JJ
On Thu, Aug 27, 2009 at 7:22 AM, Peter Saffrey<pzs@...2149...> wrote:
Some of my plots are very wide. I'd like Y axis labels on both sides so
that it's clearer to read the bars towards the right hand side.
I can change the ticks with yaxis.set_ticks_position("both") but there
doesn't seem to be a similar call for labels. Any ideas?
Thanks,
Peter
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options