rectangles

set_shape.rectangles(radius='estimate', radius_crs='in', mesh=False, n=None)

Draw projected rectangles with fixed dimensions (and possibly curved edges).

Parameters:
  • radius (int, float, tuple or str, optional) –

    The radius in x- and y- direction. The default is β€œestimate” in which case the radius is attempted to be estimated from the input-coordinates.

    If you provide an array of sizes, each datapoint will be drawn with the respective size!

  • radius_crs (crs-specification, optional) – The crs in which the dimensions are defined. The default is β€œin”.

  • mesh (bool) –

    Indicator if polygons (False) or a triangular mesh (True) should be plotted.

    Using polygons allows setting edgecolors, using a triangular mesh does NOT allow setting edgecolors but it has the advantage that boundaries between neighbouring rectangles are not visible. Only n=1 is currently supported!

  • n (int or None) – The number of intermediate points to calculate on the rectangle edges (e.g. to properly plot β€œcurved” rectangles in projected crs) Use n=1 to force rectangles! If None, 40 is used for <10k datapoints and 10 is used otherwise. The default is None