set_shape

property MapsGrid.set_shape

Set the plot-shape to represent the data-points.

By default, β€œellipses” is used for datasets smaller than 500k pixels and shading with β€œshade_raster” is used for larger datasets (if datashader is installed).

Possible shapes are: (check the individual docs for details!)

  • Projected ellipses

>>> m.set_shape.ellipses(radius, radius_crs)
  • Projected rectangles

>>> m.set_shape.rectangles(radius, radius_crs, mesh)
  • Projected geodetic circles

>>> m.set_shape.geod_circles(radius)
  • Voronoi diagram

>>> m.set_shape.voronoi_diagram(masked, mask_radius)
  • Delaunay triangulation

>>> m.set_shape.delaunay_triangulation(masked, mask_radius, mask_radius_crs, flat)
  • Point-based shading

>>> m.set_shape.shade_points(aggregator, shade_hook, agg_hook)
  • Raster-based shading

>>> m.set_shape.delaunay_triangulation(aggregator, shade_hook, agg_hook)
_radius_estimation_range

The number of datapoints to use for estimating the radius of a shape. (only relevant if the radius is not specified explicitly.) The default is 100000

Type:

int