xoa.tiles.TileMerger.plot

xoa.tiles.TileMerger.plot#

TileMerger.plot(ax=None, color=None, labels=True, cells=None, pad=0.15, **kwargs)[source]#

Plot the grid and the tiles on a map

The extent of the grid is framed, the gaps are hatched in grey, the overlaps are hatched in red, and the tiles are filled and named. Touching tiles have different colors.

Parameters:
  • ax (None, matplotlib.axes.Axes) – Axes to draw on, which can be a cartopy one. A map is created when not provided.

  • color (None, str) – A single color for all the tiles, which are then only framed, as it is better with numerous tiles. By default, tiles have their own color and are filled.

  • labels (bool) – Name the tiles that are large enough to hold their name

  • cells (None, bool) – Draw the cell edges, which defaults to small grids

  • pad (float) – Margin around the grid, in fraction of its size, for the extent of the new map

  • kwargs – Extra parameters are passed to xoa.core.plot.create_map()

Returns:

matplotlib.axes.Axes