Problems with figures generated by the compiled App
5 ビュー (過去 30 日間)
古いコメントを表示
RITAM BASU
2023 年 1 月 8 日
コメント済み: Sulaymon Eshkabilov
2023 年 1 月 13 日
I am facing a peculiar problem with the compiled version of my Matlab App.
The App generates some characteristic curves based on the motor selected. Now, the figure has four axis. When I make the plots for the first time in the app by clicking a button, the color of one axis is coming wrong (as purple, should be green). When I click the same button for the 2nd time, the new figure gets its color corrected. Now, the underlying script is the same for both clicks. And this issue does not occur in the uncompiled version at all. The colors are coded like this,
co = get(groot,'defaultAxesColorOrder');
I have shared the both pictures.
Can someone make any sense of this? I am kinda clueless as to what might be the issue.
Have a nice day ahead.
0 件のコメント
採用された回答
Sulaymon Eshkabilov
2023 年 1 月 8 日
This type of issues happen, when "hold all" or "hold on" is being used in the code.
The solution is to use "hold off":
...
plot(x, y),
hold all
plot(x, f),
hold off
Or
...
clf
plot(x, y),
hold all
plot(x, f)
2 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!