gridlines for one axis?

how does one turn on gridlines for just the x-ticks or just the yticks?
grid() just seems to do major or minor for both at the same time.

M

how does one turn on gridlines for just the x-ticks or just the yticks?
grid() just seems to do major or minor for both at the same time.

import matplotlib.pyplot as plt
plt.plot([1,2,3,2,1])
ax = plt.gca()
ax.xaxis.grid(True)
plt.draw()

ยทยทยท

On 03/31/2011 01:33 AM, Mike Kaufman wrote:

M

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options