foresight_series
foresight_series, a plotted data series.
Source: src/lib/foresight_series.F90
Dependencies
Contents
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 | 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=:) | allocatable | Text labels of the abscissae (xtic(N)), blank 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 |
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 |
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 |
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 | |
tips | real(kind=R8P) | allocatable | Second number pair per point (2, point): the tips of vectors, the |
shape | real(kind=R8P) | allocatable | Ellipse major, minor diameter and angle [deg] (3, point); NaN |
head | integer(kind=I4P) | Arrowheads: 0 none, 1 end, 2 start, 3 both. | |
head_filled | logical | Filled arrowheads. | |
texts | character(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. |
text_point | logical | Labels mark their point. | |
curve_to | integer(kind=I4P) | Fill of filledcurves: 0 closed, to ylow (a line or a | |
curve_side | integer(kind=I4P) | Fill restricted where the curve is above (1) or below (-1) | |
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. | |
at_set | logical | at given. | |
channels | real(kind=R8P) | allocatable | Red, green, blue, alpha of an RGB image (4, column, row), |
style | type(style_object) | Drawing style. | |
y2 | logical | On the second y axis (gnuplot axes x1y2), else on the first. |
Type-Bound Procedures
| Name | Attributes | Description |
|---|---|---|
extent | pass(self) | Accumulate the data extent. |
valid | pass(self) | Mask of the placeable points. |
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.
Attributes: pure
fortran
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
Functions
valid
Mask of the points placeable on both axes; the others are gaps, as gnuplot undefined points.
Attributes: pure
Returns: logical
fortran
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