fastwater.analysis.graphics module¶
Standardised graphics generating functions
Created on Wed Aug 17 15:54:43 2022
@author: chris
- fastwater.analysis.graphics.plotMesh(x, y, elems, figsize=(9, 6), UTM=True)[source]¶
Plot an unstrcutured triangular mesh from node coordinates and elements list.
- Parameters
x (numpy.array, float) – x-coordinate of mesh nodes.
y (numpy.array, float) – y-coordinate of mesh nodes.
elems (numpy.array, integer) – triangular element corner nodes.
figsize (tuple, float, optional) – Figure size in inches. The default is (9,6).
UTM (bool, optional) – Flag for CRS of node coordinates (True=UTM or False=WGS84) . The default is True.
- Returns
figHnd – Handle to the figure object created.
- Return type
obj