edit_grid#

Spectral.edit_grid(minor_x=True, minor_y=True, major_x=True, major_y=True, style_minor='Solid', style_major='Solid', minor_color=(0, 0, 0), major_color=(0, 0, 0))[source]#

Edit the grid settings for the plot.

Parameters:
minor_xbool, optional

Whether to enable the minor X grid. The default is True.

minor_ybool, optional

Whether to enable the minor Y grid. The default is True.

major_xbool, optional

Whether to enable the major X grid. The default is True.

major_ybool, optional

Whether to enable the major Y grid. The default is True.

style_minorstr, optional

Minor grid style. The default is "Solid".

style_majorstr, optional

Major grid style. The default is "Solid".

minor_colortuple, optional

Minor grid (R, G, B) color. The default is (0, 0, 0). Each color value must be an integer in a range from 0 to 255.

major_colortuple, optional

Major grid (R, G, B) color. The default is (0, 0, 0). Each color value must be an integer in a range from 0 to 255.

Returns:
bool

True when successful, False when failed.