plotyy x axis does not match

조회 수: 2 (최근 30일)
Meh 2014년 11월 6일
답변: Matt Tearle 2014년 11월 6일
I am using plotyy function to draw two curves, one line the other bar using
I want the bar to be upside down, I added:
I want both axes to be date axis; I added;
but xticks are overlapping; and if I turn off the second one; then they are not matching at all. Can any body help me solve this problem?

답변 (1개)

Matt Tearle
Matt Tearle 2014년 11월 6일
Try getting rid of the ticks on one x-axis (the one that hasn't been dateticked):
You may also want to ensure that the limits are the same:
xl = get(ax(1),'XLim');
(I'm not sure which is axis 1 and 2, so you may need to switch them.)


Help CenterFile Exchange에서 Two y-axis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by