Azzera filtri
Azzera filtri

grid on in gui

5 visualizzazioni (ultimi 30 giorni)
Michael Adelman
Michael Adelman il 11 Lug 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,

Risposta accettata

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

Più risposte (3)

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

Michael Adelman
Michael Adelman il 11 Lug 2012
Tried that, it doesn't help.

Michael Adelman
Michael Adelman il 11 Lug 2012
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