Source: mathtext_demo.f90
Render math text and symbols in labels and titles.
mathtext_demo.f90 - Source codeoutput/example/fortran/mathtext_demo/make example ARGS="mathtext_demo"

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