grid on in gui

14 次查看(过去 30 天)
Michael Adelman
Michael Adelman 2012-7-11
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,

采纳的回答

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

更多回答(3 个)

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

Michael Adelman
Michael Adelman 2012-7-11
Tried that, it doesn't help.

Michael Adelman
Michael Adelman 2012-7-11
Thank you Sebastian, it helped.

标签

Community Treasure Hunt

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

Start Hunting!

Translated by