Grid

class aplpy.Grid(parent)[source]

Bases: object

Methods Summary

hide(self)

set_alpha(self, alpha)

Set the alpha (transparency) of the grid lines

set_color(self, color)

Set the color of the grid lines

set_linestyle(self, linestyle)

set_linewidth(self, linewidth)

set_xspacing(self, xspacing)

Set the grid line spacing in the longitudinal direction

set_yspacing(self, yspacing)

Set the grid line spacing in the latitudinal direction

show(self)

Methods Documentation

hide(self)[source]
set_alpha(self, alpha)[source]

Set the alpha (transparency) of the grid lines

Parameters
alphafloat

The alpha value of the grid. This should be a floating point value between 0 and 1, where 0 is completely transparent, and 1 is completely opaque.

set_color(self, color)[source]

Set the color of the grid lines

Parameters
colorstr

The color of the grid lines

set_linestyle(self, linestyle)[source]
set_linewidth(self, linewidth)[source]
set_xspacing(self, xspacing)[source]

Set the grid line spacing in the longitudinal direction

Parameters
xspacingfloat or str

The spacing in the longitudinal direction. To set the spacing to be the same as the ticks, set this to ‘tick’

set_yspacing(self, yspacing)[source]

Set the grid line spacing in the latitudinal direction

Parameters
yspacing{ float, str }

The spacing in the latitudinal direction. To set the spacing to be the same as the ticks, set this to ‘tick’

show(self)[source]