grids#

A guide renderer for displaying grid lines on Bokeh plots.

class Grid(*args: Any, id: ID | None = None, **kwargs: Any)[source]#

Display horizontal or vertical grid lines at locations given by a supplied Ticker.

axis#

An Axis to delegate ticking to. If the ticker property is None, then the Grid will use the ticker on the specified axis for computing where to draw grid lines. Otherwise, it ticker is not None, it will take precedence over any Axis.

band_fill_alpha#

The fill alpha of alternating bands between Grid lines.

band_fill_color#

The fill color of alternating bands between Grid lines.

band_hatch_alpha#

The hatch alpha of alternating bands between Grid lines.

band_hatch_color#

The hatch color of alternating bands between Grid lines.

band_hatch_extra#

The hatch extra of alternating bands between Grid lines.

band_hatch_pattern#

The hatch pattern of alternating bands between Grid lines.

band_hatch_scale#

The hatch scale of alternating bands between Grid lines.

band_hatch_weight#

The hatch weight of alternating bands between Grid lines.

bounds#

Bounds for the rendered grid lines. By default, a grid will look for a corresponding axis to ask for bounds. If one cannot be found, the grid will span the entire visible range.

cross_bounds#

Bounds for the rendered grid lines in the orthogonal direction. By default, a grid will span the entire visible range.

dimension#

Which dimension the Axis Grid lines will intersect. The x-axis is dimension 0 (vertical Grid lines) and the y-axis is dimension 1 (horizontal Grid lines).

grid_line_alpha#

The line alpha of the Grid lines.

grid_line_cap#

The line cap of the Grid lines.

grid_line_color#

The line color of the Grid lines.

grid_line_dash#

The line dash of the Grid lines.

grid_line_dash_offset#

The line dash offset of the Grid lines.

grid_line_join#

The line join of the Grid lines.

grid_line_width#

The line width of the Grid lines.

minor_grid_line_alpha#

The line alpha of the minor Grid lines.

minor_grid_line_cap#

The line cap of the minor Grid lines.

minor_grid_line_color#

The line color of the minor Grid lines.

minor_grid_line_dash#

The line dash of the minor Grid lines.

minor_grid_line_dash_offset#

The line dash offset of the minor Grid lines.

minor_grid_line_join#

The line join of the minor Grid lines.

minor_grid_line_width#

The line width of the minor Grid lines.

ticker#

A Ticker to use for computing locations for the Grid lines.