#Metview Macro

#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 an xy area plot object with a given colour
#
# Description   : Returns an xy area plot object with a given colour
#
# Parameters    : 
# 
# Return Value  : an Input Visualisers that may be used in a plot() command
#
# Dependencies  : none
#
#==============================================================================

function xy_area(x, y, colour_area: string)
    vis = input_visualiser(
        input_x_values: x,
        input_y_values: y
    )
    graph = mgraph(
        graph_type: "area",
        graph_line_colour: colour_area,
        graph_shade_colour: colour_area
    )
    
    return [vis, graph]
end xy_area