Adjust grid color
Updated 27 Nov 2012
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.
Arnaud Laurent (2023). Adjust grid color (https://www.mathworks.com/matlabcentral/fileexchange/39210-adjust-grid-color), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
- MATLAB > Graphics > Formatting and Annotation > Axes Appearance > Limits, Ticks, and Grids > Grid Lines, Tick Values, and Labels >
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.