How to turn on the grids of axes upon start?

2 ビュー (過去 30 日間)
Ahmed Anas
Ahmed Anas 2020 年 6 月 11 日
回答済み: Mohammad Sami 2020 年 6 月 11 日
Hi All,
I have an axes with tag 'axes1' in gui project, now i want that when the project is started, the minor grids of axes should be on, i have changed its properties through property editor, but nothing is working for me. But i just want the grids to be turned on, not other things like XTicks,YTicks etc .
Thanks in advance
  1 件のコメント
Rik
Rik 2020 年 6 月 11 日
You can modify all relevant properties in your startup function.
For general advice and examples for how to create a GUI (and avoid using GUIDE), have look at this thread.

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

回答 (1 件)

Mohammad Sami
Mohammad Sami 2020 年 6 月 11 日
Use the function grid to turn off the grid. You can do this in the startup function as Rik mentioned
grid(handles.axes1,'off'); % replace handles.axes1 with the variable containing your axes

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

タグ

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by