onstove.VectorLayer.plot#
- VectorLayer.plot(ax: Axes | None = None, column: str | None = None, style: dict | None = None, legend_kwargs: dict | None = None, scale_bar: dict | None = None, north_arrow: dict | None = None)[source]#
Plots a map of the layer using custom styles.
This is, in principle, a wrapper function for the geopandas.GeoDataFrame.plot method.
- Parameters:
- ax: matplotlib axes instance
A matplotlib axes instance can be passed in order to overlay layers in the same axes.
- column: str
Determines the column to visualize. If the column is discrete the style is categorical, otherwise it is continuous and creates a color ramp
- style: dict, optional
Dictionary containing all custom styles wanted for the map. This dictionary can contain any input that is accepted by geopandas.GeoDataFrame.plot. If not defined, then the
style
attribute is used.- legend_kwargs: dict, optional
Dictionary to style and position the legend
- scale_bar: dict, optional
Dictionary to style and position the scale bar
- north_arrow: dict, optional
Dictionary to style and position the north arrow