foresight_series
foresight_series, a plotted data series.
Source: src/lib/foresight_series.F90
Dependencies
Contents
Variables
| Name | Type | Attributes | Description |
|---|---|---|---|
LABEL_LEN | integer(kind=I4P) | parameter | Longest text label of a point (xtic, labels), longer ones cut; fixed: nvfortran 26.9 corrupts the heap assigning and copying deferred-length character array components. |
Derived Types
series_object
Data series.
Components
| Name | Type | Attributes | Description |
|---|---|---|---|
x | real(kind=R8P) | allocatable | Abscissae. |
y | real(kind=R8P) | allocatable | Ordinates. |
xlow | real(kind=R8P) | allocatable | Horizontal error bar starts, allocated for x error bars. |
xhigh | real(kind=R8P) | allocatable | Horizontal error bar ends, allocated for x error bars. |
ylow | real(kind=R8P) | allocatable | Vertical error bar starts, allocated for y error bars. |
yhigh | real(kind=R8P) | allocatable | Vertical error bar ends, allocated for y error bars. |
title_plain | logical | The title as it is, not enhanced text (an automatic title, gnuplot's noenhanced). | |
title | character(len=:) | allocatable | Key title, empty for none; the label of a readout. |
format | character(len=:) | allocatable | Readout format (foresight_readout), readouts only. |
xlabels | character(len=LABEL_LEN) | allocatable | Text labels of the abscissae (xtic(N)), blank for none. |
label_axis | character(len=2) | Axis the text labels mark: x (xtic), x2 (x2tic) at the abscissae, y (ytic), y2 (y2tic) at the ordinates. | |
pointinterval | integer(kind=I4P) | A point marker every N points, the first one included (gnuplot pointinterval). | |
own_colors | character(len=24) | allocatable | A histogram's colors per row (lc variable), kept through its layouts (which rebuild colors). |
colors | character(len=24) | allocatable | Color of each point (gnuplot lc variable), unallocated for none; of lc palette z, set at each rendering. |
palette_mode | integer(kind=I4P) | Color from the palette (gnuplot lc palette): 0 none, 1 a value per point (z, zvalues), 2 a color axis value (cb), 3 a fraction of the palette (frac); value. | |
palette_value | real(kind=R8P) | The cb value or the frac fraction. | |
zvalues | real(kind=R8P) | allocatable | Palette value of each point (lc palette z), unallocated for none. |
values | real(kind=R8P) | allocatable | Values of a histogram, y being the top of its bar or stack segment. |
grid | real(kind=R8P) | allocatable | Values of an image (column, row), rows upward; x and y are then its left and right, bottom and top pixel edges. |
radius | real(kind=R8P) | allocatable | Radii of circles [x units], NaN for the default (2% of the plot width). |
arcs | real(kind=R8P) | allocatable | Start and end angles of wedges (2, point) [deg, counterclockwise from the x direction]; unallocated for whole circles. |
donut | real(kind=R8P) | Inner radius of a pie, a fraction of its radius (0: a pie). | |
scale | real(kind=R8P) | Value range of a gauge: start and end of its sweep. | |
linear | logical | Rose sectors with the radius (not the area) by value. | |
bounds | real(kind=R8P) | allocatable | Second pair of ordinates per point (2, point): the error bar ends of boxerrorbars, the box ends of candlesticks (open, close) and of boxplot (first, third quartile); unallocated otherwise. |
outliers | real(kind=R8P) | allocatable | Outliers of a boxplot (2, outlier): abscissa, ordinate. |
whiskerbars | real(kind=R8P) | Crossbars of the candlestick whiskers, a fraction of the box width; 0 for none. | |
tips | real(kind=R8P) | allocatable | Second number pair per point (2, point): the tips of vectors, the length and angle [deg] of arrows. |
shape | real(kind=R8P) | allocatable | Ellipse major, minor diameter and angle [deg] (3, point); NaN diameters for the default size. |
head | integer(kind=I4P) | Arrowheads: 0 none, 1 end, 2 start, 3 both. | |
head_filled | logical | Filled arrowheads. | |
texts | character(len=LABEL_LEN) | allocatable | Texts of labels, one per point. |
text_anchor | character(len=6) | Label anchor: start, middle, end. | |
text_rotate | real(kind=R8P) | Label rotation [deg, counterclockwise]. | |
text_offset | real(kind=R8P) | Label offset [characters, y upward]. | |
text_color | character(len=:) | allocatable | Label color, the frame color if unallocated. |
font | type(font_object) | Label font (with labels font "..."). | |
text_point | logical | Labels mark their point. | |
curve_to | integer(kind=I4P) | Fill of filledcurves: 0 closed, to ylow (a line or a band); 1 to the bottom (gnuplot x1), 2 to the top (x2), 3 to the point curve_point (xy=). | |
curve_side | integer(kind=I4P) | Fill restricted where the curve is above (1) or below (-1) its line or second curve; 0 both. | |
curve_point | real(kind=R8P) | Point of xy=X,Y. | |
at | real(kind=R8P) | Position of a parallel axis (gnuplot at); 0 for its number. | |
hist_group | integer(kind=I4P) | Histogram group (gnuplot newhistogram), 0 the first. | |
rows | real(kind=R8P) | allocatable | Rows of a histogram (its abscissae as given), from 0. |
vertex_rows | integer(kind=I4P) | allocatable | Data row of each vertex of sectors (0 for a separator). |
vertex_centres | real(kind=R8P) | allocatable | Centre (2, vertex) of the sector of each vertex (cartesian sectors; NaN for a separator), for units xx|yy. |
hist_at_set | logical | The group starts at hist_at, else after the previous one. | |
hist_at | real(kind=R8P) | Start of the histogram group (gnuplot newhistogram at X). | |
hist_title | character(len=:) | allocatable | Title of the histogram group, below the x axis. |
at_set | logical | at given. | |
channels | real(kind=R8P) | allocatable | Red, green, blue, alpha of an RGB image (4, column, row), 0 to 255 (grid holds the red ones); unallocated for a palette image. |
style | type(style_object) | Drawing style. | |
y2 | logical | On the second y axis (gnuplot axes x1y2), else on the first. | |
x2 | logical | On the second x axis (gnuplot axes x2y1), else on the first. | |
spanned | logical | The autoscale also includes span. | |
span | real(kind=R8P) | Extent beyond the points, x from-to and y from-to: the outer edges of bins and their y = 0, as gnuplot. | |
text_boxed | logical | Labels in a text box (gnuplot with labels boxed). | |
head_size | real(kind=R8P) | Arrowhead length (0: the default head) and angle [deg] of vectors and arrows (gnuplot size L,A). | |
head_fixed | logical | The heads keep their size on short arrows (fixed). | |
head_system | character(len=9) | System of the head length: first, graph, screen, character. | |
title_at | integer(kind=I4P) | Title place (gnuplot title ... at): 0 the key, 1 before the first point, 2 after the last one, 3 a page position, 4 a plot area position (graph coordinates). | |
title_xy | real(kind=R8P) | That position, screen fractions from the bottom left. | |
key_mid_palette | logical | Key sample in the palette's middle color (gnuplot's polar gridded surface). | |
crisp | logical | Polygons drawn with crisp edges, no antialiased seams between them (gnuplot's svg cells of a polar gridded surface). | |
point_sizes | real(kind=R8P) | allocatable | Each point's size (gnuplot ps variable), else the style's. |
point_types | integer(kind=I4P) | allocatable | Each point's type (gnuplot pt variable; 0 a dot), else the style's. |
hypertext | logical | Labels shown on mouse-over of their points (hypertext). | |
point_color | character(len=:) | allocatable | Color of the points of labels (their lc), black if unset. |
title_justify | integer(kind=I4P) | title at beginning|end left|right: 1 left, 2 right, 0 the place's own (right before the first point). | |
pointnumber | integer(kind=I4P) | About N point markers evenly spread, 0 for all (gnuplot pointnumber). | |
ellipse_units | character(len=2) | Units of the ellipse diameters: xy (major in x, minor in y), xx (both in x), yy (both in y). | |
text_rotations | real(kind=R8P) | allocatable | Rotation of each label [deg] (gnuplot rotate variable), text_rotate for all when unallocated. |
arrow_heads | integer(kind=I4P) | allocatable | Heads of each arrow (gnuplot arrowstyle variable), as head; the series' own for all when unallocated. |
arrow_filled | logical | allocatable | Filled heads of each arrow, as head_filled. |
arrow_widths | real(kind=R8P) | allocatable | Line width of each arrow [px]. |
arrow_sizes | real(kind=R8P) | allocatable | Head length and angle of each arrow, as head_size. |
arrow_systems | character(len=9) | allocatable | System of each head length, as head_system. |
xlabels2 | character(len=LABEL_LEN) | allocatable | Text labels of a second axis (xtic(..):ytic(..)). |
label_axis2 | character(len=2) | Axis of those labels. | |
title_auto | logical | The title a script's automatic one (the item as written). | |
noautoscale | logical | Out of the autoscaling of its axes (gnuplot noautoscale). | |
gnuplot_sample | logical | A script's key sample, as gnuplot 6.0: an arrow for vectors and arrows, none for labels (their point with point); else the library's line. | |
fill_border | logical | filledcurves: the fill style's border, never drawn by the library (see fill_edges). | |
fill_edges | integer(kind=I4P) | filledcurves: where that border is drawn: 0 nowhere (the library's), 1 as gnuplot 6.0 (a script's): around the key sample, and along a closed curve (not its closing side). | |
blank_ticks | logical | A blank text label is a tick too (a script's xtic(""), the rug, as gnuplot); else no tick (the library's). | |
spider_group | integer(kind=I4P) | Spider plot group (gnuplot newspiderplot), 0 the first: its series restart at the first axis. | |
spider_key | logical | A key entry of a spider plot group (gnuplot keyentry with spiderplot), no axis. | |
spider_color | character(len=24) | Polygon color of the group (the lc of its first item), blank for the row linetypes. | |
spider_lw | real(kind=R8P) | Polygon border width of the group (the lw of its first item), 0 for the spider plot style's. | |
radial_bars | logical | Error bars of a polar panel: the ends x:y in xlow:ylow and xhigh:yhigh, drawn along the radius. | |
colormap | integer(kind=I4P) | Named colormap of the palette colors (the panel's colormaps), 0 for the panel palette. | |
z | real(kind=R8P) | allocatable | Heights of a 3D series (gnuplot splot), one per point (NaN at the breaks between scans, as x and y); unallocated for a 2D series. |
scans | integer(kind=I4P) | allocatable | Scans of a 3D series (2, scan): the first and last point of each (gnuplot's iso-curves: a data block, a matrix row, a function line). |
scan_sets | integer(kind=I4P) | allocatable | Dataset of each scan, from 0: each a surface of its own (gnuplot). |
grid_scans | integer(kind=I4P) | Leading scans making the surface grid; the others are the cross iso-curves of a function (drawn, not gridded). | |
data_scans | logical | Scans read from data, which gnuplot keeps last first (its table order); a function's are in order. | |
sampled_scans | logical | Scans of a script's function surface, in gnuplot's list order (its pm3d scan order mirrors a data file's). | |
key_blank | logical | A key entry of its title alone, no sample (gnuplot's pm3d surfaces). | |
no_contours | logical | No contour lines (gnuplot's item option nocontours). | |
no_surface | logical | Its surface not drawn (gnuplot's item option nosurface). | |
masked | logical | Masked by the with mask polygons (item option mask). | |
back_color | character(len=:) | allocatable | Color of the underside of a surface with set hidden3d, unallocated for its own. |
zvalues_rgb | logical | zvalues are packed colors 0xAARRGGBB (gnuplot's pm3d lc rgb variable), not palette values. | |
cb_lone | logical | The color axis autoscales over its last two finite zvalues only (pm3d quadrangles: the lone points of the surface's range within the ranges set, gnuplot's). | |
colors_kept | logical | colors set per point; the palette paints only the points of a finite zvalues (the color range of pm3d quads). | |
no_hidden | logical | Out of the hidden surfaces of set hidden3d (item option nohidden3d): drawn as it is. | |
key_text | character(len=:) | allocatable | A text as the key sample (gnuplot's keyentry "text"), unallocated if none. |
contour | logical | Contour lines of a surface in a 3D view (drawn without its surface too). | |
contour_base | logical | Those on the base plane (set contour base). | |
contour_labels | logical | Its contours drawn as labels of their levels (a function with labels, gnuplot's cntr3d_labels). | |
zlow | real(kind=R8P) | allocatable | with zerrorfill: the low ends of the z errors. |
zhigh | real(kind=R8P) | allocatable | Their high ends. |
zerrorfill | logical | with zerrorfill: quadrangles from zlow to zhigh between the points (gnuplot's plot3d_zerrorfill), the line through z. | |
contourfill | logical | with contourfill: pm3d quadrangles clipped to z slices, each slice in one color (gnuplot's plot3d_contourfill). | |
rgb_values | real(kind=R8P) | allocatable | The packed colors 0xAARRGGBB of lc rgb variable lines (those of an implicit pm3d surface, gnuplot's color_from_rgbvar). |
pm3d_pending | logical | A surface whose pm3d quadrangles a 3D view draws once its projection is known (view3d_pm3d_quads), not drawn itself. |
Type-Bound Procedures
| Name | Attributes | Description |
|---|---|---|
extent | pass(self) | Accumulate the data extent. |
valid | pass(self) | Mask of the placeable points. |
Interfaces
push
Append an item through a temporary: nvfortran 26.9 corrupts list = [list, item] (and any list = f(list)) when the items hold deferred-length characters.
Module procedures: push_series
Subroutines
extent
Widen the extent (xmin, xmax, ymin, ymax) to the placeable points of the series.
With xwindow only the points whose abscissa lies inside it count: gnuplot autoscales y on the points inside the x range only. Error bar ends placeable on their axis widen the extent too, as in gnuplot; histogram rows widen the x extent by one unit on each side, as gnuplot. Semi-major axis. Semi-minor axis. Angle [rad]. Half width. Half height.
Attributes: pure
subroutine extent(self, xaxis, yaxis, xmin, xmax, ymin, ymax, found, xwindow)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(series_object) | in | Series. | |
xaxis | type(axis_object) | in | Horizontal axis. | |
yaxis | type(axis_object) | in | Vertical axis. | |
xmin | real(kind=R8P) | inout | Smallest abscissa. | |
xmax | real(kind=R8P) | inout | Largest abscissa. | |
ymin | real(kind=R8P) | inout | Smallest ordinate. | |
ymax | real(kind=R8P) | inout | Largest ordinate. | |
found | logical | inout | Set if the series has any counted point. | |
xwindow | real(kind=R8P) | in | optional | Abscissa window, in any order. |
Call graph
push_series
Append item to list (an unallocated list is empty), through a temporary: see push.
Attributes: pure
subroutine push_series(list, item)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
list | type(series_object) | inout | allocatable | List. |
item | type(series_object) | in | New item. |
Functions
valid
Mask of the points placeable on both axes; the others are gaps, as gnuplot undefined points.
Attributes: pure
Returns: logical
function valid(self, xaxis, yaxis) result(mask)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(series_object) | in | Series. | |
xaxis | type(axis_object) | in | Horizontal axis. | |
yaxis | type(axis_object) | in | Vertical axis. |
Call graph