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<p...@dcs.gla.ac.uk> 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
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to