Change the grid lines' LineWidth
95 次查看(过去 30 天)
显示 更早的评论
How can I change the grid lines' LineWidth??
2 个评论
回答(4 个)
Jan
2012-2-23
You can disable the grid and draw the lines manually using the positions of the ticks.
3 个评论
Toshia M
2023-3-17
编辑:Toshia M
2023-3-17
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
0 个评论
Andre B.
2020-5-29
You can use 'GridAlpha' (initially set to 0.15). It has a similar effect as changing the LineWidth.
0 个评论
Jürgen Stein
2020-11-27
set(gca,'LineWidth',LineWidth)
...will set both the axes outline and grid line width.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!