Okay, I'll answer my own question. After looking through the code, it appears I have to do a xgridlines - not gridlines, like:
glines = getp(gca(), 'xgridlines')
The tutorial indicated that I can use gca to get at the grid
by doing a:
glines = getp(gca(), 'gridlines')
but when I do that, I get a "Subplot instance has no
How do I get to the grid object?