grid on in gui

10 visualizaciones (últimos 30 días)
Michael Adelman
Michael Adelman el 11 de Jul. de 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,

Respuesta aceptada

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

Más respuestas (3)

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

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

Michael Adelman
Michael Adelman el 11 de Jul. de 2012
Thank you Sebastian, it helped.
  1 comentario
Sebastian Holmqvist
Sebastian Holmqvist el 12 de Jul. de 2012
Glad to help!

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by