How can I keep my GUI invisible while plotting?

Hi!
In my GUI, I run 2 plots on separate axes in OpeningFcn. When The GUI becomes visible, one has been plotted (the first one in the code) but the other axes are blank momentarily while it waits for the plot to finish. This looks very sloppy - how can I make the GUI wait until both plots are finished before it becomes visible?
Thanks! Kaitlyn

 採用された回答

Sean de Wolski
Sean de Wolski 2012 年 7 月 2 日
編集済み: Sean de Wolski 2012 年 7 月 2 日

0 投票

In the opening function
set(handles.figure1,'visible','off');
Then when you're done with all of that plotting stuff:
set(handles.figure1,'visible','on');
Note: figure1 is the default GUIDE tag; you will have to use whatever tag you defined the figure by.

2 件のコメント

Kaitlyn
Kaitlyn 2012 年 7 月 2 日
Hmmmm, I actually tried that already but it seems to make no difference. The axes are still blank for a moment before the second plot appears. Thank you for the response!
Kaitlyn
Kaitlyn 2012 年 7 月 2 日
Aha! It seems the trick is to insert the invisibility statement after each plot so that the GUI remains hidden; then turn visibility on at the end, as you suggested. Thanks again

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by