App Developer - Mouse Hovering Over Surf Plot in UIAxes Causes Extreme Lag
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Scott Young
am 23 Sep. 2022
Kommentiert: Scott Young
am 3 Okt. 2022
I have constructed a sub-app which is called from within a main app. Within this sub-app I have 3 UIAxes, each of which may be toggled between showing an image, with imagesc(), and showing the surface plot of that image, with surf().
This set-up works well, until I switch any of the axes to the surface plot and hover the mouse over the axis, at which point a significant lag (10-15 seconds?) occurs. This lag does not occur when I hover the mouse over the imagesc plot.
I have tried disabling interactivity with these axes, changing the way in which the surface plots are shaded, and changing the UIAxes to regular axes - none of these attempts worked.
Any advice would be hugely appreciated!
7 Kommentare
Adam Danz
am 23 Sep. 2022
It sounds like a callback or listener is responding to the mouse event. I can't dig deeper without looking at the app and I don't have much time now to do so.
Akzeptierte Antwort
Eric Delgado
am 30 Sep. 2022
Mouse over the plot will not affect the performance of the plot if you disable interactions.
Try this at the startup of your sub-app...
disableDefaultInteractivity(app.UIAxes1)
disableDefaultInteractivity(app.UIAxes2)
disableDefaultInteractivity(app.UIAxes3)
hold(app.UIAxes1, 'on')
hold(app.UIAxes2, 'on')
hold(app.UIAxes3, 'on')
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!