| 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="coast_2" title='North America in PolarStereo' comment='In the example we are going to plot a north american map in polar stereographic projection'> |
| 13 |
<requirement name='a' subject='Geographical Area' text='North America using a map centre and a map scale' |
| 14 |
link_doc='layout_mapping_coastlines' link_ptr='Subpage_Mapping'> |
| 15 |
<action name='pcoast'/> |
| 16 |
<parameter name='subpage_map_projection' value='polar_stereographic' function='psetc'/> |
| 17 |
<parameter name='subpage_map_area_definition' value='centre' function='psetc'/> |
| 18 |
<parameter name='subpage_map_centre_longitude' value='-95.' function='psetr'/> |
| 19 |
<parameter name='subpage_map_centre_latitude' value='40.' function='psetr'/> |
| 20 |
<parameter name='subpage_map_vertical_longitude' value='-95.' function='psetr'/> |
| 21 |
<parameter name='subpage_map_scale' value='27.e6 ' function='psetr'/> |
| 22 |
</requirement> |
| 23 |
<requirement name='b' subject='Grid setting' text='Thick, mustard Coastlines, grey Grid using a 5/5 frequency' |
| 24 |
link_doc='layout_mapping_coastlines' link_ptr='Coastlines_and_Gridlines'> |
| 25 |
<action name='pcoast'/> |
| 26 |
<parameter name='map_coastline_colour' value='mustard' function='psetc'/> |
| 27 |
<parameter name='map_grid_colour' value='grey' function='psetc'/> |
| 28 |
<parameter name='map_coastline_thickness' value='3' function='pseti'/> |
| 29 |
<parameter name='map_grid_line_style' value='dot' function='psetc'/> |
| 30 |
<parameter name='map_grid_latitude_increment' value='5.0' function='psetr'/> |
| 31 |
<parameter name='map_grid_longitude_increment' value='5.0' function='psetr'/> |
| 32 |
</requirement> |
| 33 |
<requirement name='c' subject='Title' text='A title with 2 lines'> |
| 34 |
<action name='ptext'/> |
| 35 |
<parameter name='text_line_1' value='North America in polar stereographic' function='psetc'/> |
| 36 |
<parameter name='text_line_2' value='This is My Magics Plot' function='psetc'/> |
| 37 |
<parameter name='text_line_count' value='2' function='pseti'/> |
| 38 |
</requirement> |
| 39 |
<spot name='a' text='The lines are thinner in Magics++'/> |
| 40 |
<spot name='b' text='The default colours for coastlines and grid have changed from yellow to black'/> |
| 41 |
</tutorial> |
| 42 |
</magics> |