Unicode Demo

Unicode Demo

Source: unicode_demo.f90

Unicode symbols in labels and titles.

Files

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

Running

make example ARGS="unicode_demo"

Output

Math Examples

math_examples.png

Text backend output


              Common Physics: E = mc², ΔE = hν, F = q(E + v×B)
Observable Θ
┌────────────────────────────────────────────────────────────────────────────────┐
│                                                                                │
│ │                                                                              │
│ 0.5                                                                            │
│ │                      ■                                                       │
│ │                    ■■                                                        │
│ │                  ■■            ■■■                                           │
│ │                  ■                ■■                                         │
│ 0.4              ■■                   ■                                        │
│ │               ■                      ■■                                      │
│ │  ---          ■                        ■■                                    │
│ │     --       ■                           ■                                   │
│ │       --    ■                             ■■                                 │
│ │        --   ■                               ■■                               │
│ 0.3        - ■                                  ■                              │
│ │           ■                                    ■■                            │
│ │            --                                    ■■                          │
│ │          ■  -                                     ■■■                        │
│ │          ■   --                                      ■■                      │
│ 0.2       ■     -                                        ■■                    │
│ │        ■       --                                        ■■■                 │
│ │                  -                                          ■■               │
│ │        ■          -                                           ■■■            │
│ │       ■            -                                             ■■■         │
│ 0.1    ■              ---                                             ■■■■     │
│ │      ■                --                                                     │
│ │     ■                   ---                                                  │
│ │    ■                      -----                                              │
│ │  ■■                            -----------------------------------------     │
│ +--+----------+-----------+-----------+-----------+-----------+----------+---- │
│ 0.00          1           2           3           4           5          6     │
└────────────────────────────────────────────────────────────────────────────────┘
                                  Parameter ξ

Legend:
--- Gaussian: ρ(ξ) = e^{-ξ²/2σ²}/√(2πσ²)
--- Modified Γ: f(ξ) = ξ² e^{-ξ}

Download text

Download PDF

Unicode Demo

unicode_demo.png

Text backend output


             Wave Functions: ψ(ω t) = A e^{-λ t} sin(ω t + φ)
Amplitude Ψ (V)
┌────────────────────────────────────────────────────────────────────────────────┐
│ 1.00                                                                           │
│ │                                                                              │
│ │                                                                              │
│ │  ■■                                                                          │
│ 0.75■■                                                                         │
│ │     ■                                                                        │
│ │      ■ -----                                                                 │
│ │      ■--    -                                                                │
│ 0.50   -      -                                                                │
│ │      -■      --                                                              │
│ │      ■■■              ■■■        ■■■■■■ ■■               ■■■                 │
│ │     ■  ■      -       ■ ■       ■     ■■  ■             ■   ■                │
│ 0.25 ■   ■       -     ■   ■     ■        ■■ ■           ■                     │
│ │         ■       -   ■     ■   ■       ■  ■------            ■        ■■■     │
│ │   ■              -           ■       ■ ---■■    --     ■     ■    ■■■        │
│ │   ■      ■       - ■      ■  ■        -    ■■     -              ■           │
│ 0.00       ■        -         ■       ■-      ■      ---■       ■■■            │
│ │  ■                 ■       ■        -        ■       ■-       ■■      -■     │
│ │           ■       ■-      ■        -■         ■        --   ■■ ■   ---       │
│ │            ■        -     ■ ■     -           ■■     ■   ---■ -■---   ■      │
│ -0.25        ■     ■   -   ■   ■   - ■            ■         ■■ -        ■      │
│ │             ■         -        -- ■           ■  ■■ ■   ■■■     ■            │
│ │             ■    ■    --■    ■--               ■  ■■■■■■         ■   ■       │
│ │             ■■  ■       ■    -■  ■■             ■ ■              ■  ■        │
│ -0.50          ■■■      ■■ ----  ■■               ■■■               ■■         │
│ │               ■       ■                                                      │
│ │                ■     ■                                                       │
│ -0.75             ■■■■■                                                        │
│ +--+----------+----------+----------+-----------+----------+----------+------- │
│    0          2          4          6           8         10         12        │
└────────────────────────────────────────────────────────────────────────────────┘
                     Time τ (normalized: τ = ω t / 2π)

Legend:
--- α damped: sin(ω t)e^{-λτ}
--- β damped: cos(ω t)e^{-μτ}
--- γ oscillation: sin(2ω t)

Download text

Download PDF