필터 지우기
필터 지우기

how to get rid of tick marks on the top and right axes but still have a box around the plot and keep the tick marks on the left and bottom axes?

조회 수: 2 (최근 30일)
Is there an easy way to have a box around the plot. have tick marks on the left and bottom axes but no tick marks on the top and right axes?
I know one way to do this is to set(gca, 'boxoff'), and then plot two lines on the top and right edges of the plot. but I am wondering if there is a more sophisticated way to do this. because set(gca,'ticklength') affects all axes, and I am not sure if there is an easy way to apply it only to two of the axes (like the left and bottom ones).
Tbanks.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by