viz/applications.py¶
VizApplications
¶
flowchart TD
wmbe.viz.applications.VizApplications[VizApplications]
wmbe.viz.base.VizBase[VizBase]
wmbe.viz.base.VizBase --> wmbe.viz.applications.VizApplications
click wmbe.viz.applications.VizApplications href "" "wmbe.viz.applications.VizApplications"
click wmbe.viz.base.VizBase href "" "wmbe.viz.base.VizBase"
Model application visualization class.
Methods:
-
channel_generic–Plot numerical solutions applied to channel cross-section model
-
channel_ref_weathering_rate_ref_erosion_rate_W–Plot numerical solutions applied to channel cross-section model
-
create_figure–Initialize a Pyplot figure.
Source code in wmbe/viz/base.py
channel_generic
¶
channel_generic(
name: str,
title: str | None = None,
zys: Sequence | None = None,
do_equal_aspect: bool = False,
text_labels: Sequence | None = None,
fig_size: tuple[float, float] = (6, 4),
) -> None
Plot numerical solutions applied to channel cross-section model (vertical profiles).
Parameters:
-
(name¶str) –key for figure dictionary
-
(title¶str | None, default:None) –optional title for figure
-
(zys¶Sequence | None, default:None) –numerical solutions to plot
-
(do_equal_aspect¶bool, default:False) –flag whether to force equal sizing of x and y axis scales
-
(text_labels¶Sequence | None, default:None) –text annotations as sequence of tuples of form [(x-y coordinate, string, font size)]
-
(fig_size¶tuple[float, float], default:(6, 4)) –tuple (x,y) in inches (!)
Source code in wmbe/viz/applications.py
channel_ref_weathering_rate_ref_erosion_rate_W
¶
channel_ref_weathering_rate_ref_erosion_rate_W(
name: str,
title: str | None = None,
model: ChannelWall | None = None,
text_label: Sequence | None = None,
fig_size: tuple[float, float] = (6, 4),
) -> None
Plot numerical solutions applied to channel cross-section model (vertical profiles).
Parameters:
-
(name¶str) –key for figure dictionary
-
(title¶str | None, default:None) –optional title for figure
-
(model¶ChannelWall | None, default:None) –instance of model class that simulates channel cross-sectional geometry
-
(text_label¶Sequence | None, default:None) –text annotation as tuple of form (x-y coordinate, string, font size)
-
(fig_size¶tuple[float, float], default:(6, 4)) –tuple (x,y) in inches (!)
Source code in wmbe/viz/applications.py
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | |
create_figure
¶
create_figure(
name: str, size: tuple[float, float] | None = None, dpi: int | None = None
) -> Figure
Initialize a Pyplot figure.
Set its size and DPI. Append it to the figures dictionary.
Parameters:
-
(name¶str) –name of figure; used as key in figures dictionary
-
(size¶tuple[float, float] | None, default:None) –optional width and height of figure in inches
-
(dpi¶int | None, default:None) –rasterization resolution
Returns:
-
Figure–reference to MatPlotLib/Pyplot figure