grid on in gui

6 ビュー (過去 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
Sebastian Holmqvist 2012 年 7 月 11 日
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.
  1 件のコメント
Sebastian Holmqvist
Sebastian Holmqvist 2012 年 7 月 12 日
Glad to help!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSubplots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by