Technical Solutions
How can I change the gridline color without changing the tick and tick label colors?
Date Last Modified: Monday, September 21, 2009
| Solution ID: | 1-1PAYMC | |
| Product: | MATLAB | |
| Reported in Release: | R14SP1 | |
| Fixed in Release: | R2008a | |
| Platform: | All Platforms | |
| Operating System: | All OS |
Subject:
How can I change the gridline color without changing the tick and tick label colors?
Problem Description:
When I execute the following lines of code:
ezplot('x')
the color of the x-axis gridlines, x tick-marks and x tick-labels all become red.
grid on
set(gca,'Xcolor','r')
I would like to selectively change the color of the gridlines alone, without changing the color of the x tick-marks and x tick-labels.
Solution:The gridline color cannot be changed without affecting the tick-mark and tick-label colors. |
|
|
Store

