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
+--------------------------------------------------------------------------------+
|                                                                                |
|                                                                                |
| |                                                                              |
| |                                                                              |
| |                                                                              |
| |                                                                              |
| |                                                                              |
| |                                                                              |
| |                                                                              |
| |                                                                              |
| |                                                                              |
| |                                                                              |
| |e4                                                                        --- |
| |                                                                  --------    |
| |                                                           --------           |
| |                                                    --------                  |
| |                                            --------                          |
| |                                     --------                                 |
| |                              --------                                        |
| |                      --------                                                |
| |               --------                                                       |
| |        --------                                                              |
| |----------------------------------------------------------------------------- |
| 1e3       8            16           24          32           40           48   |
+--------------------------------------------------------------------------------+
                                       x
exp(0.2x)

Download ASCII

Download PDF

Symlog Scale

symlog_scale.png

ASCII output:

                              Symlog Scale Example
+--------------------------------------------------------------------------------+
| 1e5                                                                            |
| |                                                                              |
| |                                                                              |
| |                                                                              |
| |                                                                              |
| |                                                                              |
| |                                                                              |
| |                                                                              |
| |                                                                              |
| |                                                       ---------------------- |
| |                                -----------------------                       |
| |                   --------------                                             |
| |            --------                                                          |
| |         ----                                                                 |
| |         -                                                                    |
| |         -                                                                    |
| |        --                                                                    |
| |        -                                                                     |
| |       --                                                                     |
| |--------                                                                      |
| |                                                                              |
| |                                                                              |
| |----------------------------------------------------------------------------- |
| 1e4       8            16           24          32           40           48   |
+--------------------------------------------------------------------------------+
                                       x
x3 - 50x

Download ASCII

Download PDF