out1Peak.outPlotAllPeak.addConstrainedDataField

addConstrainedDataField(fileName, resType, demField, ax, cellSize, alpha=1.0, setLimits=False, oneColor='')[source]

find fileName data, constrain data and demField to where there is data, create colormap, define extent, add hillshade contours, add to axes and add colorbar

Parameters
  • fileName (pathlib path) – path to data

  • resType (str) – name of result variable type

  • demField (numpy ndarray) – array of dem data

  • ax (matplotlib axes object) – axes where to add data plot to

  • cellSize (float) – cellSize of data

  • alpha (float) – from 0 transparent to 1 opaque for plot of constrained data

  • setLimits (bool) – if True set limits of constrained data to plot

  • oneColor (str) – optional to add a color for a single color for field

Returns

ax – axes updated

Return type

matplotlib axes object