From: <jk...@ik...> - 2007-03-02 15:30:09
|
kc1...@ya... 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 |