Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

 

 

Section
Column
width60%
Panel

 mtext ( macro/python ) ptext(fortran)


Magics can plot text anywhere on a page, the default position  is above the plot, on top of any eventual legend.

The text can be formatted using basic html format: <font colour='red' size='0.5'> My red text </font> font> 

We have also created some internal tags :

tags  
<magics_title/>
will
create an automatic title  that contains the major information from the data (parameter, valid-date,level, centre ...)
<grib_info key='shortName"/>
: will
extract the grib_api key shortName
fom
from the grib
plotted
and replace the tag by its value.
<grib_info key='level" where='shortName=t'/>
: will
extract level from the grib that verify the criteria "shortName=t'
<grib_info key='valid-date' format='%Y-%m-%d %H:%M:00'/>
will
build the validity date for the grib, applying the specified format
<netcdf_info variable='var 'attribute='title' default='unknown'/>
will
use the value of the attribute title from the variable var if exists or use the default
.

 

 
Column
width30%
Panel
titleQuick links :


Gallery:

  • Text Example

 

 

...