| 1 |
<!-- |
| 2 |
(C) Copyright 1996-2016 ECMWF. |
| 3 |
|
| 4 |
This software is licensed under the terms of the Apache Licence Version 2.0 |
| 5 |
which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. |
| 6 |
In applying this licence, ECMWF does not waive the privileges and immunities |
| 7 |
granted to it by virtue of its status as an intergovernmental organisation nor |
| 8 |
does it submit to any jurisdiction. |
| 9 |
--> |
| 10 |
|
| 11 |
<magics> |
| 12 |
<tutorial name='graph_1' magml='off' title='Simple curve with symbol plotting' |
| 13 |
comment='Here, we learn how to set up a cartesian coordinates system and to plot a simple curve'> |
| 14 |
<requirement name='1' subject='Axis system' text='Set up a regular axis system'> |
| 15 |
<action name='paxis'/> |
| 16 |
<parameter name='subpage_map_projection' value='none' function='psetc'/> |
| 17 |
<parameter name='axis_orientation' value='horizontal' function='psetc'/> |
| 18 |
<parameter name='axis_position' value='bottom' function='psetc'/> |
| 19 |
<parameter name='axis_min_value' value='0.0' function='psetr'/> |
| 20 |
<parameter name='axis_max_value' value='10.0' function='psetr'/> |
| 21 |
<parameter name='axis_tick_interval' value='1.0' function='psetr'/> |
| 22 |
<parameter name='axis_orientation' value='vertical' function='psetc'/> |
| 23 |
<parameter name='axis_position' value='left' function='psetc'/> |
| 24 |
<parameter name='axis_min_value' value='0.0' function='psetr'/> |
| 25 |
<parameter name='axis_max_value' value='40.0' function='psetr'/> |
| 26 |
<parameter name='axis_tick_interval' value='5.0' function='psetr'/> |
| 27 |
</requirement> |
| 28 |
|
| 29 |
<requirement name='2' subject='Input data' |
| 30 |
text='A list of x and y values [ x = /0.0,1.,2.,3.,4.,5.,6.,7.,8.,9.,10./, y = /0.0,4.,6.,8.,10.,15.,20.,30.,20.,10.,5./]' |
| 31 |
link_doc='graph' link_ptr='Graph_Mapping_XY_Values'> |
| 32 |
<parameter name='graph_curve_x_values' value='/0.0,1.,2.,3.,4.,5.,6.,7.,8.,9.,10./' function='pset1r'/> |
| 33 |
<parameter name='graph_curve_x_values' value='/0.0,4.,6.,8.,10.,15.,20.,30.,20.,10.,5./' function='pset1r'/> |
| 34 |
<action name ='pgraph'/> |
| 35 |
</requirement> |
| 36 |
<requirement name='3' subject='Curve plotting' text='Simple red curve with symbols' |
| 37 |
link_doc='graph' link_ptr='Curve_Plotting'> |
| 38 |
<action name='pgraph'/> |
| 39 |
<parameter name='graph_type' value='curve' function='psetc'/> |
| 40 |
<parameter name='graph_symbol' value='on' function='psetc'/> |
| 41 |
<parameter name='graph_symbol_marker_index' value='18' function='pseti'/> |
| 42 |
<parameter name='graph_line_colour' value='red' function='psetc'/> |
| 43 |
</requirement> |
| 44 |
<requirement name='4' subject='Legend' text='Turn the legend on'> |
| 45 |
<parameter name='legend' value='on' function='psetc'/> |
| 46 |
<parameter name='legend_user_text' value='My red curve' function='psetc'/> |
| 47 |
</requirement> |
| 48 |
<requirement name='5' subject='Page ID' text='Change the text of the line id at the bottom of the page' |
| 49 |
link_doc='layout_mapping_coastlines' link_ptr='Page_Identification_Line'> |
| 50 |
<parameter name='page_id_line_user_text' value='My first graph' function='psetc'/> |
| 51 |
</requirement> |
| 52 |
<requirement name='6' subject='Text' text='Add your own title'> |
| 53 |
<action name='ptext'/> |
| 54 |
<parameter name='text_line_1' value='Graph plotting in ' function='psetc'/> |
| 55 |
<parameter name='text_line_2' value='curve mode with symbols' function='psetc'/> |
| 56 |
<parameter name='text_colour' value='navy' function='psetc'/> |
| 57 |
<parameter name='text_line_count' value='2' function='pseti'/> |
| 58 |
</requirement> |
| 59 |
<spot name='a' text='Difference on the legend'/> |
| 60 |
|
| 61 |
</tutorial> |
| 62 |
</magics> |