Scroll pdf ignore | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Text Plotting
A plot's title should not be underestimated - it provides vital information about what is being displayed.
...
The Text Plotting icon controls the content and appearance of the title. By default, it contains this:
Text Line Count | 1 |
Text Line 1 | <magics_title/> |
So we have a single-line title which uses the default content defined by Magics, Metview's plotting engine.
...
Make a duplicate of your Text Plotting icon. We will move the title to another location in the plot using the new icon. Use the following parameters:
Text Mode | Positional |
Text Box X Position | X coordinate of lower left corner of text box (in cm) |
Text Box Y Position | Y coordinate of lower left corner of text box (in cm) |
Text Box X Length | Width of the box (in cm) |
Text Box Y Length | Height of the box (in cm) |
Text Box Blanking | On |
Text Border | On |
Remember that Metview uses an A4 page by default, which is 29.7cm wide by 21.0cm high. Try to figure out the coordinates of the box, or look in the solutions folder!
...
Code Block | ||
---|---|---|
| ||
field_name = grib_get_string(rh[1], 'name') & ' / ' & grib_get_string(z[1], 'name') |
Extra Work
...
Continue the work of updating the macro to use nothing but meta-data references so that it does not extract anything from the GRIB header itself and everything is taken at plot time.
Also, the title just shows the date - add the time of the data.
Text boxes
To exemplify the Text Plotting's dropping rules, do the following:
...
Next, create a Macro program, name it custom_text_boxes, using all the above icons.
Meta-data references in Macro
The title just shows the date - add the time of the data.