How to save an axes into an matlab figure after plotting through button down function?
古いコメントを表示
I have an application to save an axes data into matlab figure after ploting some data into axes.
The action need to be done through axes button down function.
But, the button down fuction is not working after ploting the data into the axes.
10 件のコメント
Adam Danz
2021 年 6 月 11 日
"Not working" doesn't tells us anything. If there is an error message, share the entire error message. If there is unexpected behavior, describe your expected behavior and the actual behavior. It's usually helpful to provide the callback function so we can see what's going on inside. I presume the callback is merely calling the saveas function or something similar (exportgraphics, maybe?).
Vinothkumar Sethurasu
2021 年 6 月 12 日
編集済み: Vinothkumar Sethurasu
2021 年 6 月 12 日
Vinothkumar Sethurasu
2021 年 6 月 12 日
dpb
2021 年 6 月 12 日
As Adam notes, I think you need to post your code creating the axes and that assigns the callback functions as well as the callback function itself...nobody can debug what can't see.
Easiest would be to create a toy project that illustrates the problem that could be downloaded directly...
Adam Danz
2021 年 6 月 12 日
I have no idea what you're doing. Please explain how you're creating the plot, when and how you're assigning the buttonDownFcn and all of the details necessary to explain the problem.
Vinothkumar Sethurasu
2021 年 6 月 12 日
編集済み: Adam Danz
2021 年 6 月 12 日
Adam Danz
2021 年 6 月 12 日
Oh, so this is done in GUIDE. Where/how are you assigning the buttonDwnFcn to the axes?
Is that done in GUIDE or from a startup function or somehwere else? Please share that line(s) of code where you're assigning the ButtonDownFcn to the axes.
Vinothkumar Sethurasu
2021 年 6 月 13 日
dpb
2021 年 6 月 13 日
But we don't have that code to look at so still can't diagnose anything at all without spending our time trying to recreate your symptoms. "Help us help you..."
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Graphics Performance についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!