On Wed, Jun 25, 2008 at 7:21 AM, Darren Dale <[EMAIL PROTECTED]> wrote:

> I don't see a problem here. I did the following:
>
> ipython -pylab
> run two_scales.py
> ax1.yaxis.set_minor_locator(MultipleLocator(1000))
> draw()
> # Shows minor ticks on both left and right yaxis
>  ax1.yaxis.tick_left()
> draw()
> # shows minor ticks on left only
> ax2.yaxis.set_minor_locator(MultipleLocator(.1))
> draw()
> # shows left yaxis minor ticks on left only, shows right yaxis ticks on both
> ax2.yaxis.tick_right()
> draw()
> # shows left yaxis minor ticks on left only, right yaxis minor ticks on
> # right only

Thanks Darren, that solves it. I was calling tick_left() and
tick_right() before calling set_{major,minor}_locator(). Moving these
calls to after the ticks have been set solves the problem.

Cheers

Adam

> Darren
>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to