grid on in gui

18 views (last 30 days)
Michael Adelman
Michael Adelman on 11 Jul 2012
HI,
I have six axes in my gui, and I want that everyone of them will be with grid on. simple command grid on, apply only on one of the plots randomly at each run.
how to resolve this?
thanks,

Accepted Answer

Sebastian Holmqvist
Sebastian Holmqvist on 11 Jul 2012
axes_handle = axes(n)
plot(x, y)
grid(axes_handle, 'on')

More Answers (3)

Ilham Hardy
Ilham Hardy on 11 Jul 2012
Use grid on after every plot (/subplot) command.

Michael Adelman
Michael Adelman on 11 Jul 2012
Tried that, it doesn't help.

Michael Adelman
Michael Adelman on 11 Jul 2012
Thank you Sebastian, it helped.

Tags

Community Treasure Hunt

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

Start Hunting!