필터 지우기
필터 지우기

How do I turn off figure toolbar and turn on axes toolbar

조회 수: 4 (최근 30일)
Thomas
Thomas 2020년 6월 23일
편집: Thomas 2020년 6월 23일
I have an application I made with GUIDE. If I turn on the figure toolbar (set figure.toolbar property to 'figure'), the axes exploration buttons (zoom, pan, etc) appear above each graph, but only when running in MATLAB, not compiled. If I turn off the figure toolbar (set figure.toolbar property to 'none'), then they don't show up at all. If I turn off the figure toolbar and activate the desired buttons for each axes in the figure using axtoolbar, then they appear as desired, both within MATLAB and compiled. The code I end up with is
buttons = {'export' 'pan' 'zoomin' 'zoomout' 'restoreview'};
axtoolbar(handles.axes1, buttons);
axtoolbar(handles.axes2, buttons);
etc.
I realize that addToolbarExplorationButtons and removeToolbarExplorationButtons affect this but I don't know what is the precise state of each combination.
If there is a better way to do this I am all ears.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Visual Exploration에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by