Debian Codegraph @

docs/manual/chapters/tutorial/graph_2.xml

raw
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_2' magml='off' title='Bar chart plotting'
13 comment='In this example the X axis is Date axis and we will plot some bars.'>
14 <requirement name='1' subject='X Axis is a date axis' text='Set up a date horizontal axis'
15 ulink='Date_Time_Axis_Plotting'>
16 <action name='paxis'/>
17 <parameter name='subpage_map_projection' value='none' function='psetc'/>
18 <parameter name='axis_orientation' value='horizontal' function='psetc'/>
19 <parameter name='axis_position' value='bottom' function='psetc'/>
20 <parameter name='axis_type' value='date' function='psetc'/>
21 <parameter name='axis_grid' value='off' function='psetc'/>
22 <parameter name='axis_line_colour' value='black' function='psetc'/>
23 <parameter name='axis_date_type' value='days' function='psetc'/>
24 <parameter name='axis_date_min_value' value='2007-02-25 00:00:00' function='psetc'/>
25 <parameter name='axis_date_max_value' value='2007-02-27 00:00:00' function='psetc'/>
26 <parameter name='axis_tick' value='on' function='psetc'/>
27 <parameter name='axis_tick_interval' value='1.0' function='psetr'/>
28 <parameter name='axis_days_label_colour' value='black' function='psetc'/>
29 <parameter name='axis_days_label' value='number' function='psetc'/>
30 </requirement>
31 <requirement name='2' subject='Y Axis is a regular axis' text='Set up a regular horizontal axis'>
32 <action name='paxis'/>
33 <parameter name='subpage_map_projection' value='none' function='psetc'/>
34 <parameter name='axis_line' value='on' function='psetc'/>
35 <parameter name='axis_orientation' value='vertical' function='psetc'/>
36 <parameter name='axis_type' value='regular' function='psetc'/>
37 <parameter name='axis_min_value' value='0.0' function='psetr'/>
38 <parameter name='axis_max_value' value='15.0' function='psetr'/>
39 <parameter name='axis_tick_interval' value='5.0' function='psetr'/>
40 <parameter name='axis_tick_label_frequency' value='2' function='pseti'/>
41 <parameter name='axis_tick_label_quality' value='high' function='psetc'/>
42 <parameter name='axis_tick_label_colour' value='black' function='psetc'/>
43 <parameter name='axis_line' value='on' function='psetc'/>
44 </requirement>
45 <requirement name='3' subject='Vertical title' text='Add a Title on your vertical axis'
46 >
47 <parameter name='axis_title' value='on' function='psetc'/>
48 <parameter name='axis_title_text' value='My Unit' function='psetc'/>
49 <parameter name='axis_title_height' value='0.6' function='psetr'/>
50 <parameter name='axis_title_colour' value='black' function='psetc'/>
51 <parameter name='axis_title_orientation' value='parallel' function='psetc'/>
52 </requirement>
53 <requirement name='4' subject='Grid' text='Add some grid'>
54 <parameter name='axis_grid' value='on' function='psetc'/>
55 <parameter name='axis_grid_colour' value='black' function='psetc'/>
56 <parameter name='axis_grid_thickness' value='2' function='pseti'/>
57 <parameter name='axis_grid_line_style' value='dot' function='psetc'/>
58 </requirement>
59 <requirement name='5' subject='Input data for bar plotting'
60 text='A list of date for the x and y values'
61 ulink='Date_Time_Axis_Plotting'>
62 <parameter name='graph_bar_date_x_values'
63 value='/2007-02-25 00:00:00 to 2007-02-27 00:00:00 by 12hours/'
64 function='pset1c'/>
65 <parameter name='graph_bar_y_values' value='/5., 10., 4., 7., 12., 2., 7., 9., 1./' function='pset1r'/>
66 <action name ='pgraph'/>
67 </requirement>
68 <requirement name='6' subject='Bar plotting' text='Grey bars'
69 link_doc='graph' link_ptr='Bar_Chart_Plotting'>
70 <action name='pgraph'/>
71 <parameter name='graph_type' value='bar' function='psetc'/>
72 <parameter name='graph_shade' value='on' function='psetc'/>
73 <parameter name='graph_shade_style' value='area_fill' function='psetc'/>
74 <parameter name='graph_shade_colour' value='grey' function='psetc'/>
75 <parameter name='graph_bar_colour' value='grey' function='psetc'/>
76 <parameter name='graph_bar_width' value='0.8' function='psetr'/>
77 <parameter name='graph_line_colour' value='black' function='psetc'/>
78 <parameter name='graph_line_thickness' value='4' function='pseti'/>
79 </requirement>
80 <requirement name='7' subject='Legend' text='Turn the legend on'>
81 <parameter name='legend' value='on' function='psetc'/>
82 <parameter name='legend_user_text' value='My data' function='psetc'/>
83 <parameter name='legend_text_colour' value='navy' function='psetc'/>
84 <parameter name='legend_text_height' value='0.5' function='psetr'/>
85 </requirement>
86
87
88 <spot name='a' text='Difference on the legend'/>
89 <spot name='b' text='the parameter graph_bar_thickness behaves differently'/>
90 </tutorial>
91 </magics>