I think he wants to turn the grid on for both major and minor ticks. I'm
interested in that also. Is there a way to do that?
Lee
Jae-Joon Lee lee.j.j...@gmail.com
02/10/2010 08:10 PM
To
K L klu1...@gmail.com
cc
matplotlib-users@lists.sourceforge.net
Subject
Re: [Matplotlib-users
On Thu, Feb 11, 2010 at 8:13 AM, Lee Boger boger_...@cat.com wrote:
I think he wants to turn the grid on for both major and minor ticks. I'm
interested in that also. Is there a way to do that?
ax.grid(True, which='major')
ax.grid(True, which='minor')
JDH
Whoop, the evil' mathwork even doesn't allow me to refer to a picture
on the site. ok, here's the effect I need (semilogy plotting with more
detailed grid)
http://i47.tinypic.com/95zihi.gif
Sorry for any inconvenience!
grid takes an optional argument which. Unfortunately this is not
properly documented with pylab.grid and Axes.grid.
But see
http://matplotlib.sourceforge.net/api/axis_api.html?highlight=grid#matplotlib.axis.Axis.grid
grid(True) # this turns on gridlines for major ticks
grid(True, which=minor) #