Skip to content

foresight_series ​

foresight_series, a plotted data series.

Source: src/lib/foresight_series.F90

Dependencies

Contents ​

Derived Types ​

series_object ​

Data series.

Components ​

NameTypeAttributesDescription
xreal(kind=R8P)allocatableAbscissae.
yreal(kind=R8P)allocatableOrdinates.
xlowreal(kind=R8P)allocatableHorizontal error bar starts, allocated for x error bars.
xhighreal(kind=R8P)allocatableHorizontal error bar ends, allocated for x error bars.
ylowreal(kind=R8P)allocatableVertical error bar starts, allocated for y error bars.
yhighreal(kind=R8P)allocatableVertical error bar ends, allocated for y error bars.
titlecharacter(len=:)allocatableKey title, empty for none; the label of a readout.
formatcharacter(len=:)allocatableReadout format (foresight_readout), readouts only.
xlabelscharacter(len=:)allocatableText labels of the abscissae (xtic(N)), blank for none.
valuesreal(kind=R8P)allocatableValues of a histogram, y being the top of its bar or stack segment.
gridreal(kind=R8P)allocatableValues of an image (column, row), rows upward; x and y are then its
radiusreal(kind=R8P)allocatableRadii of circles [x units], NaN for the default (2% of the plot width).
arcsreal(kind=R8P)allocatableStart and end angles of wedges (2, point) [deg, counterclockwise from
donutreal(kind=R8P)Inner radius of a pie, a fraction of its radius (0: a pie).
scalereal(kind=R8P)Value range of a gauge: start and end of its sweep.
linearlogicalRose sectors with the radius (not the area) by value.
boundsreal(kind=R8P)allocatableSecond pair of ordinates per point (2, point): the error bar ends of
outliersreal(kind=R8P)allocatableOutliers of a boxplot (2, outlier): abscissa, ordinate.
whiskerbarsreal(kind=R8P)Crossbars of the candlestick whiskers, a fraction of
tipsreal(kind=R8P)allocatableSecond number pair per point (2, point): the tips of vectors, the
shapereal(kind=R8P)allocatableEllipse major, minor diameter and angle [deg] (3, point); NaN
headinteger(kind=I4P)Arrowheads: 0 none, 1 end, 2 start, 3 both.
head_filledlogicalFilled arrowheads.
textscharacter(len=:)allocatableTexts of labels, one per point.
text_anchorcharacter(len=6)Label anchor: start, middle, end.
text_rotatereal(kind=R8P)Label rotation [deg, counterclockwise].
text_offsetreal(kind=R8P)Label offset [characters, y upward].
text_colorcharacter(len=:)allocatableLabel color, the frame color if unallocated.
text_pointlogicalLabels mark their point.
curve_tointeger(kind=I4P)Fill of filledcurves: 0 closed, to ylow (a line or a
curve_sideinteger(kind=I4P)Fill restricted where the curve is above (1) or below (-1)
curve_pointreal(kind=R8P)Point of xy=X,Y.
atreal(kind=R8P)Position of a parallel axis (gnuplot at); 0 for its number.
at_setlogicalat given.
channelsreal(kind=R8P)allocatableRed, green, blue, alpha of an RGB image (4, column, row),
styletype(style_object)Drawing style.
y2logicalOn the second y axis (gnuplot axes x1y2), else on the first.

Type-Bound Procedures ​

NameAttributesDescription
extentpass(self)Accumulate the data extent.
validpass(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

NameTypeIntentAttributesDescription
selfclass(series_object)inSeries.
xaxistype(axis_object)inHorizontal axis.
yaxistype(axis_object)inVertical axis.
xminreal(kind=R8P)inoutSmallest abscissa.
xmaxreal(kind=R8P)inoutLargest abscissa.
yminreal(kind=R8P)inoutSmallest ordinate.
ymaxreal(kind=R8P)inoutLargest ordinate.
foundlogicalinoutSet if the series has any counted point.
xwindowreal(kind=R8P)inoptionalAbscissa 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

NameTypeIntentAttributesDescription
selfclass(series_object)inSeries.
xaxistype(axis_object)inHorizontal axis.
yaxistype(axis_object)inVertical axis.

Call graph