hydromt_sfincs.plots.plot_basemap#
- hydromt_sfincs.plots.plot_basemap(ds: Dataset, geoms: Dict, variable: str = 'dep', shaded: bool = False, plot_bounds: bool = True, plot_region: bool = False, plot_geoms: bool = True, bmap: str | None = None, zoomlevel: int = 11, figsize: Tuple[int] | None = None, geom_names: List[str] | None = None, geom_kwargs: Dict = {}, legend_kwargs: Dict = {}, bmap_kwargs: Dict = {}, **kwargs)[source]#
Create basemap plot.
- Parameters:
ds (xr.Dataset) – Dataset with model maps
geoms (Dict of geopandas.GeoDataFrame) – Model geometries
variable (str, optional) – Map of variable in ds to plot, by default ‘dep’
shaded (bool, optional) – Add shade to variable (only for variable = ‘dep’), by default False
plot_bounds (bool, optional) – Add waterlevel (msk=2) and open (msk=3) boundary conditions to plot.
plot_region (bool, optional) – If True, plot region outline.
plot_geoms (bool, optional) – If True, plot available geoms.
bmap ({'sat', 'osm'}) – background map, by default “sat”
zoomlevel (int, optional) – zoomlevel, by default 11
figsize (Tuple[int], optional) – figure size, by default None
geom_names (List[str], optional) – list of model geometries to plot, by default all model geometries
geom_kwargs (Dict of Dict, optional) – Model geometry styling per geometry, passed to geopandas.GeoDataFrame.plot method. For instance: {‘src’: {‘markersize’: 30}}.
legend_kwargs (Dict, optional) – Legend kwargs, passed to ax.legend method.
- Returns:
Model fig and ax objects
- Return type:
fig, axes