Scale Examples

Scale Examples

Source: scale_examples.f90

Linear, log, and symlog axis scales.

Files

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

Running

make example ARGS="scale_examples"

Output

Log Scale

log_scale.png

ASCII output:



                               Log Scale Example
+--------------------------------------------------------------------------------+
|                                                                                |
| |                                                                              |
| |                                                                        -     |
| |                                                                    -----     |
| |                                                                 ----         |
| |                                                             ----             |
| |                                                         -----                |
| |                                                      ----                    |
| |                                                  ----                        |
| |                                              -----                           |
| |                                           ----                               |
| |                                       ----                                   |
| |                                   -----                                      |
| |                                ----                                          |
| |                            ----                                              |
| |                        -----                                                 |
| 1e4                   ----                                                     |
| |                 ----                                                         |
| |             -----                                                            |
| |          ----                                                                |
| |      ----                                                                    |
| 1e3-----                                                                       |
| ++--------------+-------------+--------------+-------------+-------------+---- |
|  0             10            20             30            40            50     |
+--------------------------------------------------------------------------------+
                                       x
exp(0.2x)

Download ASCII

Download PDF

Symlog Scale

symlog_scale.png

ASCII output:



                              Symlog Scale Example
+--------------------------------------------------------------------------------+
|                                                                                |
| |                                                                              |
| |                                                                       --     |
| |                                                      ------------------      |
| |                                         -------------                        |
| |                               -----------                                    |
| |                        --------                                              |
| |                   ------                                                     |
| |                ----                                                          |
| |             ---                                                              |
| |            --                                                                |
| |            -                                                                 |
| |            -                                                                 |
| |           --                                                                 |
| 1e5         -                                                                  |
| |           -                                                                  |
| |           -                                                                  |
| |           -                                                                  |
| |          --                                                                  |
| |          -                                                                   |
| |  -      --                                                                   |
| 1e4--------                                                                    |
| ++--------------+-------------+--------------+-------------+-------------+---- |
|  0             10            20             30            40            50     |
+--------------------------------------------------------------------------------+
                                       x
x^3 - 50x (1e5)

Download ASCII

Download PDF