[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
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
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
[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
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
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