[EMAIL PROTECTED] writes:

> Somebody at the usenet suggested that I play with the ticker
> formatter and locator. While that helped the multi-color sample I
> cited, it didn't help in my plots. The formatter only controls how
> the y-axis labels are formatted, whereas AFAIK the locator only
> affects the values of the ymajor and yminor.

This works for me:

    figure()
    gca().yaxis.set_major_locator(LinearLocator())
    x=arange(0, 7, 0.01)
    plot(sin(x))
    gca().set_ylim((-1.1,1.1))
    show()

-- 
Jouni K. Seppänen
http://www.iki.fi/jks


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to