Hello, I would like to have a single plot with 2 linked X axes with different scales. Currently, I have plot with 2 axes (first in time, second in samples) with significantly different scales, however with same number of points - see attached plot.
I want both axes to zoom simultaneously and proportionally, if I use linkaxes it changes scale on one of the axes, which is problem given the difference in scales. Can you recommend me any solution? Thanks

 채택된 답변

Martin Hrabina
Martin Hrabina 2016년 3월 17일
편집: Martin Hrabina 2016년 3월 17일

0 개 추천

Okay, my problem was solved by creating quite simple auxiliary function. Detailed description can be found on
part Customizing the Zoom

댓글 수: 1

Can you please share your solution?
And another question, how to make plot show double axis with all the points?

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

추가 답변 (1개)

Walter Roberson
Walter Roberson 2016년 3월 16일

0 개 추천

plotxx() ?

댓글 수: 1

Martin Hrabina
Martin Hrabina 2016년 3월 16일
편집: Martin Hrabina 2016년 3월 16일
Thanks for quick response! However I don't see this as a solution, since this, just like my original solution (without linkaxes) zooms only one X axis, the other stays as it was. I would like to see, when zoomed, sample range and time range at the same time.

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

카테고리

도움말 센터File Exchange에서 Data Exploration에 대해 자세히 알아보기

태그

질문:

2016년 3월 16일

댓글:

2020년 7월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by