The plots in live editor don't show up unless I press the open in figure window option.

212 ビュー (過去 30 日間)
Dagur
Dagur 2023 年 10 月 1 日
回答済み: José 2024 年 11 月 13 日
Hi.
I am working on a school project and everything was going fine yesterday, but this morning when I ran the live scripts the plots show up empty in the live editor. I can still see the plots, but I have to press the "open in figure window" option, which is irritating. Any suggestions?
  9 件のコメント
Dagur
Dagur 2023 年 10 月 1 日
This did not work but the "matlab -softwareopengl" flag did. The plots can now be seen in the matlab editor. Can you explain why this works
Akshat
Akshat 2023 年 10 月 2 日
編集済み: Akshat 2023 年 10 月 2 日
'-softwareopengl' is a startup option that is used when invoking MATLAB from the command line. It is brought into use to manage the OpenGL libraries when MATLAB detects a graphics driver with known issues. Leveraging this option forces MATLAB to start with software OpenGL libraries.
As the issues is resolved, I would be summarising and moving the discussion to an answer for future reference.

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

回答 (2 件)

Akshat
Akshat 2023 年 10 月 2 日
編集済み: Akshat 2023 年 10 月 2 日
Hi @Dagur,
I understand that you are facing issues with plots in the live editor. In reference to the code shared, the issue could not be reproduced on MATLAB R2023a and MATLAB R2021a. On subsequent discussions in the comments, it was found that, a Graphic Timeout Error warning was being thrown which was resolved through invoking MATLAB from the command line using the '-softwareopengl' flag which forces MATLAB to start with software OpenGL libraries.
>> matlab -softwareopengl
Have a look at the MATLAB Answer attached below for more information:
I hope this helps.

José
José 2024 年 11 月 13 日
Working on MAC with apple-silicon, using R2024b.
Had the same problem.
The solution for me is to use a new figure for each new plot.
figure
plot(...)
figure
plot(...)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by