xy_curve

xy_curve(x, y, colour, style, thickness)

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

Parameters
  • x (list or ndarray) – x coordinates of the curve points

  • y (list or ndarray) – y coordinates of the curve points

  • colour (str) – the colour of the curve

  • style (str) – the line style of the curve

  • thickness (number) – the thickness of the curve

Return type

list of input_visualiser() and mgraph()

Returns a list containing an input_visualiser() and an mgraph(), which can be directly used in plot().

Notebooks using metview.xy_curve