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 implement it as a custom locators.
Thanks,
BTW: John, many thinks to an excellant package.
···
> How do I force the first label to appear at the origin for
all plots?How about
ax.set_ylim(-1.1,1.1)
ax.set_yticks([-1.1, 0, 1.1])etc...
You can use custom locators as above to automate this, but if
you know the ticks you want, just set them.
--
John Henry