DataTip is shown far from the selected data sample. How can I fix it ?
4 views (last 30 days)
Show older comments
Varun Pai on 26 Oct 2022
Commented: Varun Pai on 31 Oct 2022
I have a GUI application created using appdesigner. I plot a scatter plot for random 10 x 2 data. Insted of default datacursor associated with the axis, I created a custom toolbar icon and enable/disable the data cursor from there.
In my data, the X axis values are in the range [0-1]e17, where as my Y axis values are in the range [0-1]e-1. I plot this data in the axes using scatter plot. I enable datacursor tool by clicking on the icon and then click on a sample. The datatip is displayed far from the actual sample.
I am attaching the image for reference. Also attaching my sample code.
Is there any way to fix this ?
Kevin Holly on 28 Oct 2022
Edited: Kevin Holly on 28 Oct 2022
I ran the provided app in R2021b and had the same issue.
I ran the provided app in R2022b and it was resolved.
I would suggest using R2022b.
Find more on Scatter Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!