Hello Chris, for only horizontal lines you can use 'ax.yaxis.grid' like: --------------------------------------------------- from pylab import * figure() ax = axes() ax.set_yticks([0.0,0.5,1.0], minor=False) ax.set_yticks(list(linspace(0.0, 1.0, 11)), minor=True) ax.yaxis.grid(which='minor') show() ---------------------------------------------------
best regards, Matthias On Tuesday 18 March 2008 10:22, Chris Withers wrote: > Eric Firing wrote: > >> I can get the major ticks to show by doing grid(True), but how do I > >> get the same effect for minor ticks? > > > > Try > > > > grid(True, which='minor') > > Thanks, that worked (well, it did what it was supposed to...) so it'd be > nice if it was in the online docs as well as the docstring of the method;-) > > However, this isn't quite what I want... I only want the grid for the > y-axis (ie: horizontal lines in the grid, but no vertical), how would I > do that? > > cheers, > > Chris ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users