Abstraction layer over Gnuplot.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | parameter | :: | PLOT_STYLE_NONE | = | 0 |
Invalid style. |
integer, | public, | parameter | :: | PLOT_STYLE_LINES | = | 1 |
Lines. |
integer, | public, | parameter | :: | PLOT_STYLE_LINESPOINTS | = | 2 |
Lines with symbols. |
integer, | public, | parameter | :: | PLOT_STYLE_DOTS | = | 3 |
Dots. |
integer, | public, | parameter | :: | PLOT_STYLE_POINTS | = | 4 |
Points. |
integer, | public, | parameter | :: | PLOT_STYLE_LAST | = | 4 |
Never use this. |
integer, | public, | parameter | :: | PLOT_TERMINAL_NONE | = | 0 |
Invalid terminal. |
integer, | public, | parameter | :: | PLOT_TERMINAL_ANSI | = | 1 |
ASCII with ANSI colours (dumb). |
integer, | public, | parameter | :: | PLOT_TERMINAL_ASCII | = | 2 |
ASCII (dumb). |
integer, | public, | parameter | :: | PLOT_TERMINAL_GIF | = | 3 |
GIF (libgd). |
integer, | public, | parameter | :: | PLOT_TERMINAL_PNG | = | 4 |
PNG (libgd). |
integer, | public, | parameter | :: | PLOT_TERMINAL_PNG_CAIRO | = | 5 |
PNG (libcairo). |
integer, | public, | parameter | :: | PLOT_TERMINAL_SIXEL | = | 6 |
Sixel (libgd). |
integer, | public, | parameter | :: | PLOT_TERMINAL_SVG | = | 7 |
SVG. |
integer, | public, | parameter | :: | PLOT_TERMINAL_X11 | = | 8 |
X11. |
integer, | public, | parameter | :: | PLOT_TERMINAL_LAST | = | 8 |
Never use this. |
integer, | public, | parameter | :: | PLOT_TERMINAL_NAME_LEN | = | 8 |
Max. terminal name length. |
character(len=*), | public, | parameter | :: | PLOT_TIME_FORMAT | = | '%Y-%m-%dT%H:%M:%S' |
Datetime format. |
character(len=*), | public, | parameter | :: | PLOT_TERMINAL_NAMES(PLOT_TERMINAL_NONE:PLOT_TERMINAL_LAST) | = | [character(len=PLOT_TERMINAL_NAME_LEN)::'none', 'ansi', 'ascii', 'gif', 'png', 'pngcairo', 'sixelgd', 'svg', 'x11'] |
Gnuplot terminal names. |
Plot context type.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | terminal | = | PLOT_TERMINAL_NONE |
Output terminal. |
|
integer, | public | :: | style | = | PLOT_STYLE_LINES |
Plot line style. |
|
integer, | public | :: | width | = | 800 |
Plot width. |
|
integer, | public | :: | height | = | 300 |
Plot height. |
|
character(len=FILE_PATH_LEN), | public | :: | output | = | ' ' |
Output file name. |
|
character(len=8), | public | :: | background | = | ' ' |
Background colour (optional). |
|
character(len=8), | public | :: | foreground | = | '#3b4cc0' |
Foreground colour (optional). |
|
character(len=8), | public | :: | graph | = | '#ffffff' |
Graph background colour. |
|
character(len=FILE_PATH_LEN), | public | :: | font | = | ' ' |
Font name or file path (optional). |
|
character(len=128), | public | :: | title | = | ' ' |
Plot title (optional). |
|
character(len=128), | public | :: | xlabel | = | ' ' |
X label (optional). |
|
character(len=128), | public | :: | ylabel | = | ' ' |
Y label (optional). |
|
character(len=TIME_LEN), | public | :: | xrange(2) | = | ' ' |
X axis range. |
|
real(kind=r8), | public | :: | yrange(2) | = | 0.0_r8 |
Y axis range. |
|
logical, | public | :: | bidirect | = | .false. |
Bi-directional anonymous pipe. |
|
logical, | public | :: | persist | = | .false. |
Persistent Gnuplot process (use only with X11). |
|
logical, | public | :: | xautoscale | = | .true. |
Auto-scale X axis. |
|
logical, | public | :: | yautoscale | = | .true. |
Auto-scale Y axis. |
|
logical, | public | :: | grid | = | .true. |
Show grid. |
|
logical, | public | :: | legend | = | .false. |
Show legend. |
Returns Gnuplot's standard error output in allocatable character
string bytes
. The result is allocated but empty if no output to
standard error has been made.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(plot_type), | intent(inout) | :: | plot |
Plot settings. |
||
character(len=:), | intent(out), | allocatable | :: | bytes |
Bytes returned by Gnuplot. |
Returns number of bytes read from Gnuplot, and plot data in bytes
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(plot_type), | intent(inout) | :: | plot |
Plot settings. |
||
character(len=:), | intent(out), | allocatable | :: | bytes |
Bytes returned by Gnuplot. |
Returns Gnuplot terminal backend of given name.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | name |
Returns .true.
if the given terminal is valid. PLOT_TERMINAL_NONE
is an invalid terminal.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | terminal |
Terminal type enumerator. |
Returns Gnuplot version as allocatable string. This function is quite slow as Gnuplot has to be started in a new process.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in), | optional | :: | name |
Add prefix |
|
logical, | intent(out), | optional | :: | found |
Returns |