Borrar filtros
Borrar filtros

Change the grid lines' LineWidth

116 visualizaciones (últimos 30 días)
SSOI SS
SSOI SS el 23 de Feb. de 2012
Comentada: Rafi el 28 de En. de 2024
How can I change the grid lines' LineWidth??
  2 comentarios
Oleg Komarov
Oleg Komarov el 23 de Feb. de 2012
No way to control it separately from the axes.
Rafi
Rafi el 28 de En. de 2024
I want to change only the horizontal and vertical central line, how do you do it?

Iniciar sesión para comentar.

Respuestas (4)

Jan
Jan el 23 de Feb. de 2012
You can disable the grid and draw the lines manually using the positions of the ticks.
  3 comentarios
G A
G A el 23 de Feb. de 2012
is it possible to change length of ticks with TickLength and use them as grids?
Oleg Komarov
Oleg Komarov el 23 de Feb. de 2012
You'll get black straight lines.

Iniciar sesión para comentar.


Toshia M
Toshia M el 17 de Mzo. de 2023
Editada: Toshia M el 17 de Mzo. de 2023
There is a new feature in R2023a for changing the grid line width. For more information, see this solution: https://www.mathworks.com/matlabcentral/answers/157863-change-grid-line-width

Andre B.
Andre B. el 29 de Mayo de 2020
You can use 'GridAlpha' (initially set to 0.15). It has a similar effect as changing the LineWidth.

Jürgen Stein
Jürgen Stein el 27 de Nov. de 2020
set(gca,'LineWidth',LineWidth)
...will set both the axes outline and grid line width.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by