Hi.
I've asked this already in the Matlab Answers, but no one seeing it seemed to have an answer, so I'll try here also..
I've re-directed the Data Cursor callback to my own function. In there I like to re-draw a figure given new x,y-values (collected from the cursor). This works well when clicking the mouse on the plot, but not when moving the pressed mouse over the plot, to make the figure update it continuos. This is because the new plot replaces the old on (set(h, 'NextPlot', 'replace')). It feels natural that the cursor needs to be klicked again, but it's not what I want in my application..
So, any suggestions on how to make the cursor understand that it should update/fetch the x,y,z-values upon plot re-draw, from the new figure?
Thanks.
I've asked this already in the Matlab Answers, but no one seeing it seemed to have an answer, so I'll try here also..
I've re-directed the Data Cursor callback to my own function. In there I like to re-draw a figure given new x,y-values (collected from the cursor). This works well when clicking the mouse on the plot, but not when moving the pressed mouse over the plot, to make the figure update it continuos. This is because the new plot replaces the old on (set(h, 'NextPlot', 'replace')). It feels natural that the cursor needs to be klicked again, but it's not what I want in my application..
So, any suggestions on how to make the cursor understand that it should update/fetch the x,y,z-values upon plot re-draw, from the new figure?
Thanks.