#Metview Macro

#  **************************** LICENSE START ***********************************
# 
#  Copyright 2019 ECMWF. This software is distributed under the terms
#  of the Apache License version 2.0. In applying this license, ECMWF does not
#  waive the privileges and immunities granted to it by virtue of its status as
#  an Intergovernmental Organization or submit itself to any jurisdiction.
# 
#  ***************************** LICENSE END ************************************
# 
#=============================================================================
# Function      : xy_curve
#
# Syntax        : 
#                                          
# Category      : VISUAL
#
# OneLineDesc   : returns a curve with a given colour, style and thickness
#
# Description   : Returns a curve with a given colour, style and thickness
#
# Parameters    : l
# 
# Return Value  : an Input Visualisers that may be used in a plot() command
#
# Dependencies  : none
#
#==============================================================================

function xy_curve(x:vector, y: vector, colour: string, style: string, thickness: number)

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

end xy_curve   

function xy_curve(x: list, y: list, colour: string, style: string, thickness: number)

	 vis =input_visualiser(
        input_x_values  :   x,
        input_y_values  :   y
        )
 
 	 gr = mgraph(
        graph_line_colour    : colour,
        graph_line_style     : style,
        graph_line_thickness : thickness
        )
        
     return [vis, gr]

end xy_curve  