how to display only bottom and left axis lines, but not right and top axis lines?
이전 댓글 표시
Matlab plots by default draw 4 lines with tick marks on left, bottom, right and top. I wanted to create 2D plots similar to those in excel, in which only the bottom and left have axis and tick mark, while the line and ticks on right and top are not displaying. I tried set 'Box' to be 'off', but does not seem to work. Any suggestions on how to do this? thank you.
채택된 답변
추가 답변 (2개)
Andrew Hook
2018년 10월 31일
7 개 추천
set(gca,'box','off') works. Note the lower case 'box'.
댓글 수: 1
Frank Pernett
2021년 6월 18일
Thank you, better answer!
Jewel Jubic
2012년 1월 31일
편집: John Kelly
2014년 6월 12일
0 개 추천
Any more examples can you give...
카테고리
도움말 센터 및 File Exchange에서 Axis Labels에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!