필터 지우기
필터 지우기

I can't click on figures to interact with them and open new figures

조회 수: 12 (최근 30일)
Neuro
Neuro 2022년 5월 31일
댓글: DGM 2022년 5월 31일
Hi. For many years, I've used toolboxes to plot data that let you click on specific parts of the image to open new subplots. Now, for some reason, I can't. When I click on the figure, an annoying set of labels appear and they prevent me from doing what I need to do. I'm attaching an image - I marked with red the labels that appear. Normally, I would click on any of those little graphs to open them in a different window. All these plots are created in toolboxes - I know that many have had issues with this poor Matlab design decision, but I can't find the solution. Please, help. Thanks.
  댓글 수: 3
Neuro
Neuro 2022년 5월 31일
Sorry, it's attached now
DGM
DGM 2022년 5월 31일
This looks like some sort of custom GUI. If the GUI were relying on some custom mouse interaction callbacks, it might not be surprising if there is some sort of conflict with the new(ish) view controls.

댓글을 달려면 로그인하십시오.

채택된 답변

Matt J
Matt J 2022년 5월 31일
if ~verLessThan('matlab','9.5')
set(groot,'defaultFigureCreateFcn',@(fig, ~)addToolbarExplorationButtons(fig));
set(groot,'defaultAxesCreateFcn',@(ax,~)set(ax.Toolbar,'Visible','off'));
end
if ~verLessThan('matlab','9.7')
set(groot,'defaultAxestoolbarVisible','off')
end
  댓글 수: 2
Neuro
Neuro 2022년 5월 31일
Thanks, but it doesn't work. The labels disappeared but I still can't interact with the figure - when I click on the subplots, they don't open.
Matt J
Matt J 2022년 5월 31일
The subplots opening in their own figure was never normal Matlab behavior. You would have had to have defined a buttonDownFcn callback or something to make that happen, see e.g.,

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Matt J
Matt J 2022년 5월 31일
You could also try disableDefaultInteractivity.

카테고리

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

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by