필터 지우기
필터 지우기

Overlapping graphs

조회 수: 7 (최근 30일)
Aparna Rajasekaran
Aparna Rajasekaran 2011년 11월 28일
I have 3 graphs to be overlapped but the axis of each is different how do i do this?

답변 (2개)

Walter Roberson
Walter Roberson 2011년 11월 28일

Hin Kwan Wong
Hin Kwan Wong 2011년 11월 28일
You can either normalize all the axes so that they fit within the same scale on a common axis and plot the data in different colors. This is far easier. You just give the legend of the data different scale, and that's just as presentable as having 3 set of tickmarks
Or you can use ha=axes('Position',[x y width height]) commands manually to set 2 axes to coinside in position as the primary axis, and plot data using plot(ha,datax,datay) on all 3 of them. You need to set the axis backgrounds to transparent on the 2 latter axes, as well as remove tick marks if desired. This is not as nice as resizing figure window may cause problems.

카테고리

Help CenterFile Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by