grid on in gui

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

1 voto

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

Più risposte (3)

Ilham Hardy
Ilham Hardy il 11 Lug 2012

0 voti

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

0 voti

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

0 voti

Thank you Sebastian, it helped.

Categorie

Scopri di più su 2-D and 3-D Plots in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by