Axes label

kc106_2005-matplotlib@...9... 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