How could I change the Linewidth of XTick or YTick without changing the Box or Edge lineWidth?
조회 수: 30 (최근 30일)
이전 댓글 표시
I want to change the linewidth of XTick and YTick of the plot, so that I can see the difference between box or edge line and XTick or YTick.
댓글 수: 0
채택된 답변
jonas
2018년 10월 17일
You have to dig through the undocumented properties, but its possible
ax.XAxis.MajorTickChild.LineWidth = 2
추가 답변 (1개)
Bruce Rodenborn
2020년 8월 4일
Apparently this is no longer and option in MATLAB 2020a. Cannot understand why I have control of minor tick widths, but not major ticks except as a global change to the linewidth of the plot, which affects the box.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/341308/image.png)
댓글 수: 0
참고 항목
카테고리
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!