<!--
(C) Copyright 1996-2016 ECMWF.
This software is licensed under the terms of the Apache Licence Version 2.0
which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
In applying this licence, ECMWF does not waive the privileges and immunities
granted to it by virtue of its status as an intergovernmental organisation nor
does it submit to any jurisdiction.
-->
<magics>
	<class directory="visualisers" xmltag="graph" name="GraphPlotting">
		<documentation>
    This action routine (and C++object) controls the plotting of curves, bar charts and area charts.
		</documentation>
		<parameter xml="legend"
			from="string"
			name="legend"
			default="off"
			member="legend"
			to="bool">
			<documentation>Turn on/off the legend for this graph (this parameter is new to Magics++)</documentation>
			<release>1.3</release>
			<set name="legend_user_text" value="on"></set>
		</parameter>
		<parameter xml="legend_text"
			from="string"
			name="legend_user_text"
			default=""
			member="legend_text"
			to="string">
			<documentation>User-defined text for the legend of this graph</documentation>
		</parameter>
		<parameter xml="type"
			from="string"
			name="graph_type"
			default="curve"
			member="type"
			to="Graph">
			<documentation>Defines the type of curve required</documentation>
			<migration>New Magics: Parameter graph_type sent to new Magics[Graph].</migration>
			<option xml="curve" fortran="curve" include="Curve.h" name="Curve"></option>
			<option xml="bar" fortran="bar" include="Bar.h" name="Bar"></option>
			<option xml="flag" fortran="flag" include="Bar.h" name="GraphFlag"></option>
			<option xml="arrow" fortran="arrow" include="Bar.h" name="GraphArrow"></option>
			<option xml="area" fortran="area" include="Curve.h" name="CurveArea"></option>
		</parameter>
	</class>
</magics>
