# Metview Macro

#  **************************** LICENSE START ***********************************
# 
#  Copyright 2015 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 ************************************

h_axis = maxis(
    axis_line_colour       : "black",
    axis_line_thickness    : 3,
    axis_grid              : "on",
    axis_grid_colour       : "grey",
    axis_grid_line_style   : "dash",
    axis_title_text        : "This is the X Axis",
    axis_title_colour      : "blue",
    axis_title_height      : 0.6,
    axis_tick_label_height : 0.5
    )

v_axis = maxis(
    axis_orientation       : "vertical",
    axis_line_colour       : "black",
    axis_line_thickness    : 3,
    axis_grid              : "on",
    axis_grid_colour       : "grey",
    axis_grid_line_style   : "dash",
    axis_title_text        : "This is the Y Axis",
    axis_title_colour      : "blue",
    axis_title_height      : 0.6,
    axis_tick_label_height : 0.5
    )

cartesian_view = cartesianview(
    x_max           : 10,
    y_max           : 15,
    horizontal_axis : h_axis,
    vertical_axis   : v_axis
    )



data = input_visualiser(
    input_x_values : [1,2,3,4,5,6,7,8],
    input_y_values : [7,4,5,10,5.5,3,2,7],
    input_values   : [22,15,21,7,10,4,7,4]
    )


bar = mgraph(
    graph_type         : "bar",
    graph_bar_colour   : "black",
    graph_shade_colour : "coral"
    )



title = mtext(
    text_line_1     : "This is the title for the whole plot",
    text_colour     : "mustard",
    text_font_style : "bold",
    text_font_size  : 0.7
    )

plot(cartesian_view, data, bar, title)
