Skip to content

foresight_theme ​

foresight_theme, output themes: the page colors of a figure (classic, vfd, lcd).

A theme recolors the output, never the figure: the layout draws with gnuplot's colors (black frame and text, grey grid, white page, the gnuplot palette) and the devices map them through map as they write. classic maps nothing, so the default output is unchanged; vfd is a vacuum fluorescent display (black glass, emissive colors, labels printed in blue, glowing data); lcd a backlit liquid crystal display (pale green glass, dark segments). Colors other than the frame, grid, page and palette ones (an lc '#123456' of the user) are kept.

Source: src/lib/foresight_theme.F90

Dependencies

Contents ​

Variables ​

NameTypeAttributesDescription
THEMEScharacter(len=*)parameterTheme names.

Derived Types ​

theme_object ​

Output theme.

Components ​

NameTypeAttributesDescription
namecharacter(len=7)Name.
backgroundcharacter(len=7)Page and window background.
framecharacter(len=7)Border, ticks and text.
gridcharacter(len=7)Grid lines.
palettecharacter(len=7)Series colors replacing the gnuplot palette; blank: kept.
glowlogicalData drawn with a glow.
ghostreal(kind=R8P)Opacity of the unlit segments and cells.

Type-Bound Procedures ​

NameAttributesDescription
is_classicpass(self)Whether the theme maps nothing.
mappass(self)Theme color of a layout color.

Functions ​

theme_named ​

Theme name (see THEMES); classic for an unknown name.

Attributes: pure

Returns: type(theme_object)

fortran
function theme_named(name) result(theme)

Arguments

NameTypeIntentAttributesDescription
namecharacter(len=*)inTheme name.

Call graph

is_classic ​

Whether the theme maps nothing (classic).

Attributes: elemental

Returns: logical

fortran
function is_classic(self) result(yes)

Arguments

NameTypeIntentAttributesDescription
selfclass(theme_object)inTheme.

Call graph

map ​

Theme color of the layout color: the frame (black), grid (#a0a0a0), page (white) and gnuplot palette colors become the theme ones, any other color is kept.

Attributes: pure

Returns: character(len=:)

fortran
function map(self, color) result(mapped)

Arguments

NameTypeIntentAttributesDescription
selfclass(theme_object)inTheme.
colorcharacter(len=*)inLayout color.

Call graph