필터 지우기
필터 지우기

How to show multiple scaled axis on a plot?

조회 수: 2 (최근 30일)
Dan H
Dan H 2018년 9월 12일
댓글: jonas 2018년 9월 12일
Hello,
I want to create plots with multiple linked x and / or y axes: for example, a plot time --> distance should show a timescale in units of seconds [at bottom] and another one in hours [at the top]; the distance should be in meter [left side] and inch [right side]. Obviously, the axes need to be linked, so that a zoom or moving the plot will affect both axes similarly.
So far, I was only able to use a workaround with two plots (using yyaxis left / yyaxis right) and manually setting the limits (ylim), but as soon as one zooms or moves the plot, the "link" is messed up again.
Thanks for advice, Dan
  댓글 수: 1
jonas
jonas 2018년 9월 12일
Deleted my answer as it was obviously not what you were looking for. The solution in this thread should be useful for you ( link ).

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

답변 (0개)

카테고리

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

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by