Link the y-axis in first subplot with color in the second subplot when zoom in
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, here two subplots with first one is height vs. time, the second subplot is scatterplot x vs.y with the time be color coded. See the plot code below
The linkage between first and second subplot is time.
What I really want to achieve is when I zoom in the first plot in a certain time, the second plot will show the points in X-Y in the same time range.
Anyone has some idea? Thanks!
x=0.1:0.1:1;
y=0.2:0.2:2;
z=10:-1:1;
t=1:10;
figure;
subplot(2,1,1);
plot(t,z);
subplot(2,1,2);
s=10;
scatter(x,y,s,t);
colormap jet;
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Subplots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!