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



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to