From: Simson G. <si...@ac...> - 2006-12-15 23:56:18
|
Looks like I need to read *all* of the docstrings. I wish there was an easy way to search them.... On Dec 15, 2006, at 2:49 AM, Eric Firing wrote: > Simson Garfinkel wrote: >> HI. I wand to have just horizontal grid lines. Is there any way to >> do this? Thanks! > > gca().yaxis.grid(True) > gca().xaxis.grid(False) > > Here is the grid method docstring: > > def grid(self, b=None, which='major', **kwargs): > """ > Set the axis grid on or off; b is a boolean use which = > 'major' | 'minor' to set the grid for major or minor ticks > > if b is None and len(kwargs)==0, toggle the grid state. If > kwargs are supplied, it is assumed you want the grid on and b > will be set to True > > kwargs are used to set the line properties of the grids, eg, > > xax.grid(color='r', linestyle='-', linewidth=2) > > > Eric > |