On Mon, Oct 12, 2009 at 11:45 AM, Ernest Adrogué <eadro...@gmx.net> wrote: > hi, > > is there a way to put a label every two o three ticks, > instead of putting it on every tick?
I personally think it is best to use major ticks with labels and minor ticks w/o labels. > > the following works but it's a little cumbersome: > > ax.set_yticklabels([pos % 2 != 0 and '%.2f' % num or '' > for pos, num in enumerate(ax.get_yticks())]) If you need more than that, consider using a custom tick formatter. -JJ > > > cheers, > > Ernest > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users