Adjust grid color

Adjust x, y and/or z grid color

You are now following this Submission

Adjust the line type and the color of the xgrid, ygrid and zgrid (if necessary) for a specific axis handle. The original grid command changes the color of the axis and axis label, which is avoided with this script.

Cite As

Arnaud Laurent (2026). Adjust grid color (https://uk.mathworks.com/matlabcentral/fileexchange/39210-adjust-grid-color), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0