⚠️ Our 0.1 release refactored several early-development functions for long-term stability, to update your code see here. ⚠️
Future changes will come with deprecation warnings! 🙂




Vector.plot(ref_crs=None, cmap=None, vmin=None, vmax=None, alpha=None, cbar_title=None, add_cbar=False, ax=None, return_axes=False, **kwargs)[source]#

Plot the vector.

This method is a wrapper to geopandas.GeoDataFrame.plot. Any **kwargs which you give this method will be passed to it.

  • ref_crs (Union[Raster, DatasetReader, TypeVar(VectorType, bound= Vector), GeoDataFrame, str, CRS, int, None]) – Coordinate reference system to match when plotting.

  • cmap (Colormap | str | None) – Colormap to use. Default is plt.rcParams[‘image.cmap’].

  • vmin (float | int | None) – Colorbar minimum value. Default is data min.

  • vmax (float | int | None) – Colorbar maximum value. Default is data max.

  • alpha (float | int | None) – Transparency of raster and colorbar.

  • cbar_title (str | None) – Colorbar label. Default is None.

  • add_cbar (bool) – Set to True to display a colorbar. Default is True.

  • ax (Union[Axes, Literal['new'], None]) – A figure ax to be used for plotting. If None, will plot on current axes. If “new”, will create a new axis.

  • return_axes (bool) – Whether to return axes.

Return type:

None | tuple[Axes, Colormap]


None, or (ax, caxes) if return_axes is True