Plotting api-doc#

raster_plot_with_context#

plotting.raster_plot_with_context(raster_path: str, epsg: int = 28992, basemap: bool = True, clabel: Optional[str] = None, cmap: Optional[str] = None, title: Optional[str] = None, vmin: Optional[float] = None, vmax: Optional[float] = None) matplotlib.pyplot.figure[source]#

Function to create a plot from a tiff file

Parameters
  • raster_path (str) – location of tiff file

  • epsg (int) – EPSG identifier of coordinate reference system. Default is EPSG:28992, Dutch RDS

  • basemap (bool) – Whether to load a basemap or not

  • clabel (str) – label for colorbar

  • cmap (str) – string identifier for matplotlib colormap

  • title (str) – title of plot

  • vmin (float) – lower bound of colorbar

  • vmax (float) – upper bound of colorbar

Returns
  • fig (plt.Figure) – matplotlib figure object

  • ax (plt.axis) – matplotlib axis