do not display value on the axis
조회 수: 260 (최근 30일)
이전 댓글 표시
Hi,
I am looking for a code that allows me to plot a figure where there are no value displayed on the x axis
I tried to use this code here:
set(gca,'xtick',[])
but that didn't work, any suggestions?
댓글 수: 0
채택된 답변
추가 답변 (1개)
Image Analyst
2013년 5월 18일
Try this:
set(gca, 'xtick', [-inf inf]);
댓글 수: 6
Image Analyst
2013년 5월 18일
It doesn't seem to work because you used plotyy() instead of plot(). Do you really need two y axes? Can you use one common one?
dates=[1,2,3,4]
SPX=[0.1,0.2,0.1,0.2]
VIX=[0.02,0.28,0.2,0.3]
plot(dates,SPX,'gs-');
hold on;
plot(dates,VIX, 'bd-');
set(gca, 'xtick', [-inf inf]);
참고 항목
카테고리
Help Center 및 File Exchange에서 Two y-axis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!