Getting the X and Y value from a scatter plot over UIAxes in App Designer

3 ビュー (過去 30 日間)
Felipe Bayona
Felipe Bayona 2020 年 10 月 21 日
回答済み: Mario Malic 2020 年 10 月 21 日
Hello Community
Im currently plotting a scatter plot into an App UIAxes.
Scatter plot has already implemented the onClick method, where a data tip with X and Y position of clicked point is plotted.
I want to catch that X and Y values.
If I implement a ButtonDownFcn callback trying to get the CurrentPosition, I can only click the area in the plot that has no points. When clicking one point there's no response (Probably my callback is in conflict with the onClick implemented by MATLAB)
How can I get this data when clicking a point and without losing the data tip that MATLAB plots in a scatter plot?
Im using the 2020b version off MATLAB
Thx a lot

回答 (1 件)

Mario Malic
Mario Malic 2020 年 10 月 21 日
Here is a question with 3 answers that might lead you to finding one to your own question.

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by