Interact with Heatmap embedded in a scrollable UI Panel
I knew how we can click into a Heatmap cell and get its row and column info. This can be done by comparing the mouse-clicking position vs the Heatmap position. But what if my Heatmap has many rows such that when it is created inside a UI panel, the panel becomes scrollable, say the mouse position when I click row 2 is the same as the position when I scroll down and click row 22? Is there a way to get the correct row and column index when I click on a cell after scrolling down?
I’m currently using the "heatmap" function to generate the heatmap. But if above can only be realized using other methods when creating heatmap, feel free to suggest (though my preferred way is to use the "heatmap" function as it gives better flexibility and functionality with the actual heatmap)I knew how we can click into a Heatmap cell and get its row and column info. This can be done by comparing the mouse-clicking position vs the Heatmap position. But what if my Heatmap has many rows such that when it is created inside a UI panel, the panel becomes scrollable, say the mouse position when I click row 2 is the same as the position when I scroll down and click row 22? Is there a way to get the correct row and column index when I click on a cell after scrolling down?
I’m currently using the "heatmap" function to generate the heatmap. But if above can only be realized using other methods when creating heatmap, feel free to suggest (though my preferred way is to use the "heatmap" function as it gives better flexibility and functionality with the actual heatmap) I knew how we can click into a Heatmap cell and get its row and column info. This can be done by comparing the mouse-clicking position vs the Heatmap position. But what if my Heatmap has many rows such that when it is created inside a UI panel, the panel becomes scrollable, say the mouse position when I click row 2 is the same as the position when I scroll down and click row 22? Is there a way to get the correct row and column index when I click on a cell after scrolling down?
I’m currently using the "heatmap" function to generate the heatmap. But if above can only be realized using other methods when creating heatmap, feel free to suggest (though my preferred way is to use the "heatmap" function as it gives better flexibility and functionality with the actual heatmap) appdesigner, 2024a, heatmap, uipanel MATLAB Answers — New Questions