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,

 Akzeptierte Antwort

Sebastian Holmqvist
Sebastian Holmqvist am 11 Jul. 2012

1 Stimme

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

Weitere Antworten (3)

Ilham Hardy
Ilham Hardy am 11 Jul. 2012

0 Stimmen

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

0 Stimmen

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

0 Stimmen

Thank you Sebastian, it helped.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by