MATLAB Answers

How to get unique identifier of a specific axis with mouse click

2 views (last 30 days)
Abdurrehman on 18 Feb 2018
Answered: Walter Roberson on 18 Feb 2018
Hi, I have placed 15 axes on a figure; each axis contains a graph, in order to perform operations I need to get unique ID of a graph when clicked with the mouse. Currently, this operation is done with Position property. I click with the mouse and read the position of axis for performing an operation. But this solution is screen dependant because the position of the axis will be different at different screen size. Is it possible to get the unique info that which axis is clicked with a mouse? Please help...


Sign in to comment.