Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make Matlab Grid Lines More Visible

Tags:

matlab

grid

The grid lines in Matlab 2014b are thin and light, which makes it difficult to see. Is it possible to increase the visibility of the Matlab grid lines?

like image 704
Roger Avatar asked Apr 09 '26 08:04

Roger


1 Answers

You can only change the thickness of all lines using:

ax = gca
ax.LineWidth = 20

LineWidth — Width of axes outline, tick marks, and grid lines 0.5 (default) | scalar value Width of axes outline, tick marks, and grid lines, specified as a scalar value in point units. One point equals 1/72 inch.

To make it more visible you can change the color and transparency using:

ax = gca
ax.GridLineStyle = '-'
ax.GridColor = 'k'
ax.GridAlpha = 1 % maximum line opacity

More details about the editable properties of grid lines can be found here:

http://www.mathworks.com/help/matlab/ref/axes-properties.html#zmw57dd0e49371

like image 56
Fantastic Mr Fox Avatar answered Apr 11 '26 01:04

Fantastic Mr Fox