Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added a note describing the problems when mixing ptext() and mlegend()

...

Metview 4 has a new icon for handling legends - the Legend icon in the Visual Definitions drawer (Macro function mlegend()). This replaces the legend functionality that used to be in the Text Plotting and Legend Entry icons. Please note that because the Metview 3 Text Plotting icon (ptext) contains parameters for controlling the legend, using ptext disables the Metview 4 Legend (mlegend) functionality in order to avoid clashes. If you wish to use the new Legend functionality alongside text plotting specifications, you must use Metview 4's Text Plotting (mtext) icon instead of ptext.

Text Plotting

Metview 4's Text Plotting icon no longer has any legend parameters - these are all now contained in the Legend icon. In addition, the way to specify user text in a title has changed a little. Metview 3 contained options to specify whether a title contained automatic text, user text or both; Metview 4 instead has a default title line which is "<magics_title/>". Any text line with this string will have the automatic title; lines without it will not. Magics++ also has features, still to be fully documented, to automatically add GRIB meta-data to a 'semi-automatic' plot title using GRIB_API keys. For instance, where Metview 3 used !PARAM!  Metview 4 would use <grib_info key='name'/>. Another commonly-encountered change is that instead of Text Reference Character Height, Metview now has Text Font Size. In Macro, ptext is replaced by mtext. See Legends, above, for information regarding the mixing of ptext() and mlegend().

Curve Plotting

This is perhaps the area which has experienced the greatest change. Curve plotting is now achieved via one of the Visualiser icons. The Curve View is replaced by the more general-purpose Cartesian View. There is a Macro example which shows, side by side, Metview 3 and 4 code for plotting curves - Migration: Curve Plotting.

...