How to Uncover the Hidden Tick Covered by an Object?
조회 수: 3 (최근 30일)
이전 댓글 표시
The red rectangle covers the XTick at point 1 and that little black bar is not visible anymore (although it is visible for points -1 and 3 on x-axis). Is there any way to make it visible (for example by putting the Axes object in front of the rectangle)?
hAxss = axes( 'XLim', [-2 4])
R = rectangle('Position', [0 0 2 1], 'FaceColor', 'r')
댓글 수: 0
채택된 답변
Walter Roberson
2017년 2월 23일
You can set the axes property 'layer' to 'top'; https://www.mathworks.com/help/matlab/ref/axes-properties.html#property_Layer
댓글 수: 0
추가 답변 (1개)
Image Analyst
2017년 2월 23일
Without seeing a screenshot, about all I can suggest is to try to make the plot taller by adjusting ylim().
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Object Properties에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!