Enabling figure pan/zoom/data tips/etc. toolbar in figures
조회 수: 27 (최근 30일)
I recently upgraded to 2019b, and it seems some figure behavior has changed. I have a GUIDE application where I plot some data. Some time in 2018, I think between 2018a and 2018b, a feature was introduced where if you hovered above the upper right part of a plot, a set of buttons appeared (what is this called?).
Anyway, in the GUIDE application, these controls magically appeared and enhanced the plots immensely with no programming effort on my part. But now, in 2019b, it is not the default behavior. Can someone explain how to turn this feature on?
Harsha Priya Daggubati 2020년 3월 27일
You can use the following command in your GUIDE OpeningFcn .m code, to add toolbar to your axes. Here, hObject.Children is the axes object:
But, It is suggested to migrate all your apps from GUIDE to App Designer in recent versions. For assistance in migrating your apps, use the GUIDE to App Designer Migration Tool for MATLAB. This tool is available as a support package.
Hope this helps!