Plotting only one axis
조회 수: 39 (최근 30일)
이전 댓글 표시
Hello I am having a plot and I don't want to use the axis off command to remove the information in both axes, but I want to have the information in the X-axis and want the Y-axis to be completely free. Kindly help me how to do that.
댓글 수: 0
답변 (2개)
Aurelien Queffurust
2012년 6월 8일
I would use these commands:
plot(1:10)
set(gca,'ytick',[],'Ycolor','w','box','off')
댓글 수: 0
Jessica Lam
2012년 6월 8일
You may set the axis color same as the background color .
댓글 수: 1
Jessica Lam
2012년 6월 8일
You may find the following code for your reference.
figure1=figure(1);
axes1 = axes('Parent',figure1,...
'YColor', get(figure1,'Color'));
hold(axes1,'all');
plot (1:10,'b');
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!