How to see if grid is on?

3 views (last 30 days)
Jakob Sørensen
Jakob Sørensen on 9 May 2012
Hey,
Quick question: Is there a way to check if grid is on or off in a certain axes?
Cheers!

Accepted Answer

TAB
TAB on 9 May 2012
get(AxesHandle,'XGrid')
get(AxesHandle,'YGrid')

More Answers (1)

Daniel Shub
Daniel Shub on 9 May 2012
get(gca, {'XGrid', 'YGrid', 'ZGrid'})

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!