Re: [Matplotlib-users] Axes label

2007-03-02 Thread Jouni K . Seppänen
[EMAIL PROTECTED] writes: > The method proposed by Jouni appears to work too: > gca().yaxis.set_major_locator(LinearLocator()) > but it created too many labels. It's just the default behavior. Please see http://matplotlib.sourceforge.net/matplotlib.ticker.html#LinearLocator or simply query the

Re: [Matplotlib-users] Axes label

2007-03-02 Thread kc106_2005-matplotlib
Thanks to the reply, John (Hunter). That's it. The method proposed by Jouni appears to work too: gca().yaxis.set_major_locator(LinearLocator()) but it created too many labels. The set_ytinks call is the key. The set_ylim doesn't seem to be necessary. Now I have to study and see how I can i

Re: [Matplotlib-users] Axes label

2007-03-02 Thread John Hunter
On 3/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > 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, w

Re: [Matplotlib-users] Axes label

2007-03-02 Thread Jouni K . Seppänen
[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 > affe

Re: [Matplotlib-users] Axes label

2007-03-02 Thread kc106_2005-matplotlib
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 a

[Matplotlib-users] Axes label

2007-03-01 Thread kc106_2005-matplotlib
I found an example on the web that illustrates the question I posted earlier about axes. See: http://www.scipy.org/Cookbook/Matplotlib/MulticoloredLine Notice that the y-axis goes from (-1.1, 1.1) but the first label is at -1.0. I really don't like that because when I read values off the gra