Versions Compared

Key

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

...

Code Block
languagepy
str = "<grib_info key='base-date'/> &#160nbsp;"
str = str & "<grib_info key='centre'/> t+<grib_info key='step'/>"
str = str & " VT:<grib_info key='valid-date'/> &#160nbsp;"
str = str & "<grib_info key='level'/> hPa <grib_info key='name'/>"

title1 = mtext (
    text_line_count : 2,
    text_line_1     : "<magics_title/>",
    text_line_2     : str
                )

title2 = mtext (
    text_line_count : 4,
    text_line_1     : "<font colour='red' size='0.5'> My </font> <font colour='blue'> text </font>",
    text_line_2     : "<font colour='black' size='0.3'> <grib_info key='name'/> </font>",
    text_line_3     : "<grib_info key='base-date' format='%Y-%m-%d %H:%M:00'/>",
    text_line_4     : "Special C++ ctime characters: <grib_info key='valid-date' format='%A %B'/>"
                 )

...