필터 지우기
필터 지우기

plotting a graph with 2 x-axis in a tile plot

조회 수: 3 (최근 30일)
Sophia
Sophia 2022년 2월 18일
편집: Jan 2022년 2월 18일

I have created some code to create a graph with two x-axis. I would like to display this is in a tile plot, but when I try to create the next tile it overwrites the data of the first.
How can I create a new tile which doesn't affect the first?

  댓글 수: 1
Jan
Jan 2022년 2월 18일
We cannot run your code due to the missing input data. So we cannot check, in which line the described effect happens. But you can do this useing the debugger. Step through the code line by line and find out, where the overwriting happens. Maybe you have to create a new axes explicitly.
If this does not work, please post a minimal working example using some rand data as input.

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

답변 (1개)

Jan
Jan 2022년 2월 18일
편집: Jan 2022년 2월 18일
I've found mysterious lines:
t=tiledlayout(3,2)
ax1=axes(t);
...
ax3=nexttile % ???
ax3=axes(t);
...
ax3=axes(t); % ??? again?
ax4=axes

카테고리

Help CenterFile Exchange에서 Specifying Target for Graphics Output에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by