cgrid

chose the color and style of grid lines in a figure

You are now following this Submission

Creates a new set of axes containing the colored grid, immediately behind the current axes. To make the axes with the grid visible, the current axes are made transparent and the current axes grid is removed. If any colored grid axes are in use when this function is called, it first deletes these old grids, before adding new cgrid axes. That way figure children don't multiply.

SYNTAX
<gridaxishandle>=cgrid(<colorarg, stylearg, colorargy>)

Cite As

Andri M. Gretarsson (2026). cgrid (https://ch.mathworks.com/matlabcentral/fileexchange/12121-cgrid), 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