plot_detections#
- geowombat.detect.plot_detections(src, predictions=None, truth=None, ax=None, band_indices=None, scale=None, max_features=2000)[source]#
Plot a raster with detections color-coded by TP / FP / FN.
- Parameters:
- srcxarray.DataArray
Background raster opened with
gw.open().- predictionsgeopandas.GeoDataFrame, optional
Detector output. Plotted in solid lines.
- truthgeopandas.GeoDataFrame, optional
Ground truth. Plotted as dashed lines.
- axmatplotlib.axes.Axes, optional
Existing axes. A new figure is created if None.
- band_indiceslist of int, optional
RGB bands for the background.
- scaletuple of (lo, hi), optional
Stretch range for background display.
- max_featuresint
Subsample to this many features before plotting to keep the figure responsive on large outputs. Default 2000.
- Returns:
- matplotlib.axes.Axes