hydromt_sfincs.SfincsModel.plot_basemap#
- SfincsModel.plot_basemap(fn_out: str | None = None, 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 = {}, **kwargs)[source]#
Create basemap plot.
- Parameters:
fn_out (str, optional) – Path to output figure file, by default None. If a basename is given it is saved to <model_root>/figs/<fn_out> If None, no file is saved.
variable (str, optional) – Map of variable in ds to plot, by default ‘dep’
shaded (bool, optional) – Add shade to variable (only for variable = ‘dep’ and non-rotated grids), 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'}, optional) – background map, by default None
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