Ben
Ben

Reputation: 342

Is there a way to make matlab gridlines bold?

I know that I can set the color of gridlines using:

pax = gca;
pax.GridColor = 'black';

But the gridlines are still a faint grey. I would like to make them darker. Is there a way to make the gridlines bold?

Note I do not want to make the gridlines thicker, I just want to make them darker that the faint grey that seems to be the automatic when using black

I am using polar plots and when I print them, the grids are almost too faint to see.

Upvotes: 2

Views: 3399

Answers (1)

Suever
Suever

Reputation: 65460

You need to modify the GridAlpha property as well so that the grid lines are actually opaque. The default value is 0.15 so even though they are black they appear gray since they are transparent. You'll want to use a GridAlpha value of 1 .

pax.GridAlpha = 1

enter image description here

Upvotes: 7

Related Questions