GridLines๏ƒ

class eomaps.grid.GridLines(m, d=None, auto_n=10, layer=None, bounds=None, n=100, dynamic=False)๏ƒ

Base class for EOmaps grid-lines (and associated grid-labels).

Note

To add new grid-lines to a map, see Maps.add_gridlines.

Methods

add_labels([where,ย offset,ย precision,ย ...])

Add labels to the gridlines.

remove()

Remove the grid from the map.

set_auto_n(auto_n)

Set the number of (auto) gridlines to draw in the currently visible extent.

set_bounds(bounds)

Set the extent of the area in which gridlines are drawn.

set_d(d)

Set a fixed gridline distance (in degrees).

set_n(n)

Set the number of intermediate points to calculate for each gridline.

update_line_props(**kwargs)

Set/update the properties of the drawn lines (e.g. color, linewidth etc.).

Attributes

auto_n

Number of automatic grid-lines to evaluate (if d=None)

bounds

The boundaries of the grid

d

The fixed grid-spacing distance (if specified).

layer

The layer assigned to the grid

n

Number of intermediate points to draw for each gridline