Borrar filtros
Borrar filtros

How could I change the Linewidth of XTick or YTick without changing the Box or Edge lineWidth?

30 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

jonas
jonas el 17 de Oct. de 2018
You have to dig through the undocumented properties, but its possible
ax.XAxis.MajorTickChild.LineWidth = 2
  3 comentarios
jonas
jonas el 18 de Oct. de 2018
My pleasure! Always interesting to see what kind of properties TMW has hidden :)
qilin guo
qilin guo el 29 de Oct. de 2021
Brilliant!! You must be an expert of MATLAB! And also I have a question: Where could I find more hidden properties?

Iniciar sesión para comentar.

Más respuestas (1)

Bruce Rodenborn
Bruce Rodenborn el 4 de Ag. de 2020
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.

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by