xy_area

xy_area(x, y, colour)

Convenience function to build an area (i.e. a polygon) to be plotted in a cartesianview() with the given colour.

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

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

  • colour (str) – fill colour of the area

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().