urbanlc.analyze.visualizer.plot_land_cover#

urbanlc.analyze.visualizer.plot_land_cover(img: ndarray, ax: Axes, save_path: Optional[str] = None, title: Optional[str] = None) None#

Plot land cover data on a given matplotlib axis.

This function takes land cover data, an axis, and optional parameters to plot the data using a specified colormap. The plot can be saved to a file if an output file path is provided. The function does not return any values.

Parameters:
  • img (numpy.ndarray) – Land cover data to be plotted.

  • ax (matplotlib.axes.Axes) – Matplotlib axis where the land cover plot will be displayed.

  • save_path (str, optional) – File path to save the plot. If None, the plot is not saved. Defaults to None.

  • title (str, optional) – Title for the plot. Defaults to None.

Returns:

None

Return type:

None