필터 지우기
필터 지우기

When I am trying to subplot using for loop. I am getting this error. However, the curve is getting plotted correctly. Please suggest what's the matter

조회 수: 3 (최근 30일)
Unrecognized method, property, or field 'InteractionsManager' for class 'matlab.graphics.primitive.canvas.JavaCanvas'.
Error in matlab.graphics.internal.FigureToolstripManager.addGCAInteractions (line 504)
can.InteractionsManager.registerInteraction(ax(k),inter{end});
Error in matlab.graphics.internal.FigureToolstripManager>@()matlab.graphics.internal.FigureToolstripManager.addGCAInteractions(f,d.Child) (line 586)
@(e,d) matlab.graphics.internal.drawnow.callback(@() matlab.graphics.internal.FigureToolstripManager.addGCAInteractions(f, d.Child)));
  댓글 수: 2
dpb
dpb 2021년 6월 28일
Looks like a problem in the Java engine -- which release and is this a new install of MATLAB by any chance?

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

답변 (1개)

Isaac Bruss
Isaac Bruss 2021년 6월 29일
I am able to recreate this error only in MATLAB Online by running the following .m file from the command line:
subplot(2,1,1)
image(imread('cameraman.tif'));title('Anything');axis equal tight;
subplot(2,1,2)
image(imread('cameraman.tif'));title('test image');hold on;axis equal tight;
I'm looking into this.
  댓글 수: 1
Isaac Bruss
Isaac Bruss 2021년 6월 29일
While we look into this specific issue, you might try tiledlayout. This is a new and preferred workflow for creating multiple figures. The code would look something like the following:
tiledlayout(2,1)
nexttile
image(imread('cameraman.tif'));title('Anything');axis equal tight;
nexttile
image(imread('cameraman.tif'));title('test image');hold on;axis equal tight;

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by