Mathtext Demo

Mathtext Demo

Source: mathtext_demo.f90

Render math text and symbols in labels and titles.

Files

  • mathtext_demo.f90 - Source code
  • Generated media in output/example/fortran/mathtext_demo/

Running

make example ARGS="mathtext_demo"

Output

Mathtext Demo

mathtext_demo.png

Text backend output


                    Mathematical Functions: x^2 and e^(-x/3)
y = f(x_i)
+--------------------------------------------------------------------------------+
| 100                                                                            |
| |..:.............:.............:..............:.............:.............:... |
| |  :             :             :              :             :            -:    |
| |  :             :             :              :             :          ---:    |
| 80.:.............:.............:..............:.............:........---..:... |
| |  :             :             :              :             :      ---    :    |
| |  :             :             :              :             :    ---      :    |
| |  :             :             :              :             :  ---        :    |
| |  :             :             :              :             :---          :    |
| 60.:.............:.............:..............:............---............:... |
| |  :             :             :              :         ----:             :    |
| |  :             :             :              :       ---   :             :    |
| |  :             :             :              :    ----     :             :    |
| 40.:.............:.............:..............:.----........:.............:... |
| |  :             :             :              ---           :             :    |
| |  :             :             :          ----:             :             :    |
| |  :             :             :       ----   :             :             :    |
| 20.:.............:.............:...-----......:.............:.............:... |
| |  :             :             -----          :             :             :    |
| |  :             :        ------              :             :             :    |
| |  ##############:  -------    :              :      --- f(x) = x^2            |
| |  :   ---------#################################### --- g(x) = 10e^(-x/3)     |
| +--+-------------+-------------+--------------+-------------+-------------+--- |
|    0             2             4              6             8            10    |
+--------------------------------------------------------------------------------+
                                      x_i

Download text

Download PDF