xs_build_curve

xs_build_curve(xs_d, fs, colour, style, thickness)

Convenience function to build a curve to be plotted in a mxsectview() with the given colour, style and thickness.

Parameters
  • xs_d (mcross_sect()) – cross section data object

  • fs (Fieldset) – the data from which the curve values will be extracted

  • colour (str) – the colour of the curve

  • style (str) – the line style of the curve. The possible values are “solid”, “dash”, “dot”, “chain_dot”, “chain_dash”.

  • thickness (number) – the thickness of the curve

Return type

list of input_visualiser() and mgraph()

The curve values are extracted from the first field in fs and they must be in the same units as the vertical axis of the cross section. The cross section definition itself is taken from xs_d. xs_build_curve() returns a list containing an input_visualiser() and an mgraph(), which can be directly used in plot().

Notebooks using metview.xs_build_curve