- the LiveScript version has additional figure field AutoListeners__
- the LiveScript version sometimes has additional figure field InternalEditor_Data
- LiveScript figure has NodeChildren of class matlab.graphics.primitive.canvas.JavaCanvas, traditional is matlab.graphics.Graphics
- LiveScript figure ApplicationData.EDITOR_APPDATA is a non-empty struct; traditional figure ApplicationData.EDITOR_APPDATA is empty struct;
- axes in traditional version has additional field HardwareCallbackListener
- axes in LiveScript version has empty Interactions.Canvas and Interactions.Figure and Interactions.List and Interactions.NumDataSpaces; traditional axes has matlab.graphics.primitive.canvas.JavaCanvas and matlab.ui.Figure and matlab.graphics.interaction.internal.InteractionsList and value 1, respectively.
How to load an existing .fig on live editor and show it as an output?
5 ビュー (過去 30 日間)
古いコメントを表示
I want to load an existing Matlab figure to my Live Editor script and show it as an output in the same way that it would appear if I used, for example, the plot function.
I've tried using openfig and setting it to visible, but the figure pops out in a new window instead of appearing as an output. Is there something I'm missing?
0 件のコメント
採用された回答
Walter Roberson
2018 年 12 月 30 日
No, you are not missing anything. MATLAB does some funky things internally, and is somehow able to distinguish the two cases.
Saved "traditional" figures and figures in LiveScript both are class matlab.ui.Figure . But in R2018b (subject to change)
There are some minor property differences that are irrelevant, such as Toolbar 'none' vs 'auto'.
The way that canvases are handled is probably the most important part.
0 件のコメント
その他の回答 (1 件)
Arun Kumar Bar
2018 年 12 月 29 日
If I have understood well, what you could do is, open the figure and click on the 'Show Plot Tools and Dock Figure' icon. Hope it will lead to what you are looking for.
Cheers!
Arun
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Creating, Deleting, and Querying Graphics Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!