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.

采纳的回答

jonas
jonas 2018-10-17
You have to dig through the undocumented properties, but its possible
ax.XAxis.MajorTickChild.LineWidth = 2
  3 个评论
qilin guo
qilin guo 2021-10-29
Brilliant!! You must be an expert of MATLAB! And also I have a question: Where could I find more hidden properties?

请先登录,再进行评论。

更多回答(1 个)

Bruce Rodenborn
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.

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by