Skip to content

foresight_axes ​

foresight_axes, a plot panel: the axes, the plotted series, the key and the decorations.

Layout follows gnuplot defaults: full border with inward ticks mirrored on the opposite side, tick labels outside bottom and left, key inside the plot area (top right by default) with right-aligned titles and the samples on their right. A key outside lies in a side margin (left, right) or, centred, above or below the plot; below and above lay its entries out in rows (horizontal), as many per row as the panel width holds.

A second y axis (gnuplot y2) scales the series plotted on it (axes x1y2) on its own, autoscaled from them alone; as gnuplot, its ticks and labels are off until set y2tics (on the right border, not mirrored), and it is drawn only when it has data or a fully fixed range. A second x axis (gnuplot x2, axes x2y1|x2y2) likewise, on the top border; as gnuplot, set x2tics alone draws it over the range of the first x axis when no series is plotted on it. Text extents are measured by the output device (estimated for vector formats, whose viewer renders the glyphs).

Boxes stand on y = 0 (boxes) and fills reach their baseline (filledcurves y=V): the box edges and the baselines are stored as the bar ends xlow/xhigh and ylow, so they widen the autoscale as error bars do. Unlike gnuplot, which leaves zero out of the y autoscale of boxes and the auto-width edges out of the x one, bars are drawn whole and with lengths proportional to their values.

Histograms (with histograms) lay out their bars from all the histogram series of the panel, as gnuplot: rows at their abscissae (the point numbers 0, 1, ... from a script), clustered the k series side by side in slots 1/(k + gap) wide centred on the row, rowstacked one stack per row, 1 wide, positive values up from 0 and negative ones down from 0, columnstacked one stack per series (its rows stacked, each in its linetype color, the row names in the key), errorbars clustered with an error bar on each bar; boxwidth scales each bar. Groups (gnuplot newhistogram) follow one another, 2 rows apart (or from at), their titles below the x axis. The layout is redone at every histogram added, the original values kept in values, the rows in rows; the x autoscale reaches one unit beyond the first and last rows, as gnuplot. Unlike gnuplot, clustered bars reach 0 in the y autoscale, as boxes.

Text labels of the abscissae (xtic(N)) of every series replace the x ticks (see foresight_axis).

Circles (with circles, gnuplot) have their radius in x units (2% of the plot width by default) and are drawn round on the page; with two angles [deg, counterclockwise from the x direction] they are wedges. A pie (with pie, a foresight extension) is alone in its panel, without axes: its slices proportional to the values, from 12 o'clock clockwise, each in its linetype color, a key entry per slice with its percentage; donut leaves a hole.

Images (with image) color a regular grid of values by the panel palette (foresight_palette) over the color axis cbaxis, autoscaled to the values or set (cbrange), extended to its ticks with the color box; the x and y axes of a panel with an image fit its pixel edges, unextended, as gnuplot. The color box lies at the right of the plot area. A theme other than classic replaces the default palette with its own (dark glass to emissive colors for vfd).

A polar panel (polar, gnuplot set polar) keeps its series as theta:r and projects them at each rendering about the pole at r = rmin (the r axis start), x and y autoscaling to the disc of the largest radius; the frame stays rectangular unless set otherwise (border, border_polar, ratio, the x and y ticks off), as gnuplot. Its polar grid, border and r axis line are data geometry (zoomed by a viewer); the r tick labels and theta labels (ttics) are page geometry, in the group fs-polar.

Readouts (with readout, see foresight_readout) show the last finite value of their series in seven-segment digits. They take no part in autoscale, the key or the plot area: they form a block of readouts, in a column or a row, placed inside the plot area as the key is (top left by default) over a window hiding the curves below. A panel of readouts alone has no axes: its block grows to fill the panel, unless a digit size is set.

Source: src/lib/foresight_axes.F90

Dependencies

Re-exports ​

NameKindModuleDescription
pushinterfaceforesight_ticksAppend an item through a temporary: nvfortran 26.9 corrupts list = [list, item] (and any list = f(list)) when the items hold deferred-length characters.

Contents ​

Variables ​

NameTypeAttributesDescription
PADreal(kind=R8P)parameterOuter padding [px].
TICK_MAJORreal(kind=R8P)parameterMajor tick length [px].
TICK_MINORreal(kind=R8P)parameterMinor tick length [px].
GAPreal(kind=R8P)parameterGap between border, tick labels and axis labels [px].
LINE_HEIGHTreal(kind=R8P)parameterText line height [font size].
HIST_CLUSTEREDinteger(kind=I4P)parameterHistograms side by side in each row.
HIST_ROWSTACKEDinteger(kind=I4P)parameterHistograms stacked by row.
HIST_COLUMNSTACKEDinteger(kind=I4P)parameterOne stack per histogram, its rows stacked.
HIST_ERRORBARSinteger(kind=I4P)parameterClustered, with error bars.
SAMPLE_LENGTHreal(kind=R8P)parameterKey sample length [font size].
MAX_LINETYPESinteger(kind=I4P)parameterLinetypes of set linetype (lw, dt, pt, ps).
CHAR_WIDTHreal(kind=R8P)parameterCharacter width [font size], gnuplot's character units (its svg terminal's h_char).
CHAR_HEIGHTreal(kind=R8P)parameterCharacter height [font size], gnuplot's svg v_char (ascent, descent and leading).
CAP_LENGTHreal(kind=R8P)parameterError bar cap length [px].
FRAME_COLORcharacter(len=*)parameterBorder and tick color.
GRID_COLORcharacter(len=*)parameterGrid line color.
GRID_DASHEScharacter(len=*)parameterGrid line dash array.
WINDOW_FILLcharacter(len=*)parameterReadout window fill: the page background.
DIGIT_HEIGHTreal(kind=R8P)parameterDefault readout digit height [font size].
COLORBOX_SIZEreal(kind=R8P)parameterColor box width [font size].
POLAR_STYLEScharacter(len=*)parameterPolar styles.
CIRCLE_SIDESinteger(kind=I4P)parameterSides of the polygon drawing a circle.
PI_R8real(kind=R8P)parameterpi.

Derived Types ​

paxis_object ​

A parallel axis (gnuplot set paxis N) of parallel axis plots and spider plots.

Components

NameTypeAttributesDescription
axistype(axis_object)Range and ticks: autoscaled to the values without extension, no ticks.
labelcharacter(len=:)allocatableLabel of a spider plot axis, the item title if unallocated.

boxplot_style ​

Layout of the boxplots, gnuplot set style boxplot.

Components

NameTypeAttributesDescription
rangereal(kind=R8P)Whiskers to the farthest point within range interquartile ranges.
fractionreal(kind=R8P)If > 0, whiskers spanning this fraction of the points instead.
outlierslogicalDraw the points beyond the whiskers.
pointtypeinteger(kind=I4P)Point type of the outliers.
financebarslogicalDrawn as finance bars, else as candlesticks.
median_widthreal(kind=R8P)Median line width [px]; negative: the box line width, 0: none.
separationreal(kind=R8P)Distance between the boxplots of the factor levels.
labelscharacter(len=4)Factor names as x tick labels: auto (or x), off.
sortedlogicalFactor levels in sorted order, else in order of appearance.

colorbox_object ​

Color box settings, gnuplot set colorbox.

Components

NameTypeAttributesDescription
horizontallogicalGradient left to right, else bottom to top.
userlogicalIn the origin/size box, else at the default place.
borderlogicalFrame drawn.
invertlogicalA vertical box with low values at the top.
originreal(kind=R8P)User box bottom left, canvas fractions from the bottom left.
sizereal(kind=R8P)User box width and height, canvas fractions.

colormap_object ​

A named colormap of a panel (gnuplot set colormap new NAME, lc palette NAME): a palette, mapped over its own range if set, else over the color axis.

Components

NameTypeAttributesDescription
palettetype(palette_object)Colors.
rangedlogicalOwn range set (set colormap NAME range [min:max]).
rangereal(kind=R8P)That range.

pm3d_queue ​

gnuplot's pm3d depth queue of a 3D view: polygons on the page (pm3d quadrangles, contourfill slices, zerrorfill, 3D boxes, splot polygons, depthorder objects), each with its depth, color and style, drawn farthest first.

Components

NameTypeAttributesDescription
xreal(kind=R8P)allocatableCorner abscissae [px].
yreal(kind=R8P)allocatableCorner ordinates [px].
offinteger(kind=I4P)allocatableFirst corner of each polygon (one more: the end).
dreal(kind=R8P)allocatableDepths.
ccharacter(len=24)allocatableColors.
sinteger(kind=I4P)allocatableStyles (indexes of styles, 0 none yet).
stylestype(style_object)allocatableStyles.
ninteger(kind=I4P)Polygons.
nvinteger(kind=I4P)Corners.

axes_object ​

Plot panel.

Components

NameTypeAttributesDescription
xaxistype(axis_object)Horizontal axis.
yaxistype(axis_object)Vertical axis.
y2axistype(axis_object)Second vertical axis, on the right: no ticks until set (gnuplot), see set_defaults.
y2_activelogicalThe second y axis is drawn, set by setup_axes.
x2axistype(axis_object)Second horizontal axis, on the top: no ticks until set (gnuplot), see set_defaults.
x2_activelogicalThe second x axis is drawn, set by setup_axes.
seriestype(series_object)allocatablePlotted series.
titlecharacter(len=:)allocatablePanel title, empty for none.
gridlogicalDraw grid lines at the major ticks.
keylogicalDraw the key.
key_hcharacter(len=6)Key horizontal position: left, center, right.
key_vcharacter(len=6)Key vertical position: top, center, bottom.
key_boxlogicalDraw a box around the key.
key_reverselogicalSamples left of the titles (gnuplot reverse).
key_plainlogicalThe key's texts as they are, not enhanced (noenhanced).
title_plainlogicalThe title as it is, not enhanced (noenhanced).
label_plainlogicalThe x, y, y2, x2, r, z, cb labels as they are (noenhanced).
key_leftlogicalTitles left-justified (gnuplot Left), else right.
key_invertlogicalEntries in reverse order (gnuplot invert).
key_opaquelogicalThe key area painted over the plot (opaque).
key_samplenreal(kind=R8P)Sample length [character widths], negative for foresight's (3 font sizes).
key_extrareal(kind=R8P)Width added to the titles [character widths], width.
key_offsetreal(kind=R8P)Key shift [characters], gnuplot offset.
key_offset_unitinteger(kind=I4P)Its coordinates: 0 characters, 1 screen, 2 graph.
key_spacingreal(kind=R8P)Row spacing [rows], gnuplot spacing.
point_scalereal(kind=R8P)Point size of the series without their own, gnuplot set pointsize.
lt_lwreal(kind=R8P)Line widths, negative if not set.
lt_dtinteger(kind=I4P)Dash types, 0 if not set.
lt_ptinteger(kind=I4P)Point types, below -1 if not set.
lt_psreal(kind=R8P)Point sizes, negative if not set.
stamplogicalTimestamp drawn.
stamp_toplogicalIn the top margin, else the bottom one.
stamp_rotatelogicalReading upward, in the left margin.
stamp_offsetreal(kind=R8P)Shift [characters, y up].
stamp_fonttype(font_object)Font (set timestamp font).
stamp_colorcharacter(len=24)Text color, the frame's if blank.
stamp_formatcharacter(len=128)Time format (gnuplot's asctime).
clip_onelogicalSegments with one end out drawn (clip one).
clip_twologicalSegments with both ends out drawn (clip two).
clip_pointslogicalPoints whose marker crosses the border hidden.
jitter_spreadreal(kind=R8P)Displacement multiplier, 0 for no jitter.
jitter_overlapreal(kind=R8P)Overlap criterion [characters, or y units].
jitter_firstlogicaloverlap first: in y axis units.
jitter_wrapreal(kind=R8P)Largest displacement [characters], 0 for none.
jitter_styleinteger(kind=I4P)0 swarm, 1 square, 2 vertical.
key_heightreal(kind=R8P)Height added to the key [characters], height.
key_maxrowsinteger(kind=I4P)Most rows of a vertical key (more: columns), 0 for one column (gnuplot maxrows).
key_maxcolsinteger(kind=I4P)Most columns of a horizontal key, 0 for as many as fit (gnuplot maxcols).
gnuplot_keylogicalgnuplot's key rules (the scripts'): a vertical key taller than the panel wraps into columns, samplen adds a tick length; the library's: one column, samplen alone.
key_columnsinteger(kind=I4P)Columns of the key, 0 for the automatic layout (gnuplot columns N).
key_tccharacter(len=24)Title color: blank the frame's, variable each series' (textcolor).
key_box_lccharacter(len=24)Box line color, the frame's if blank (box lc).
key_box_lwreal(kind=R8P)Box line width [px] (box lw).
key_box_dtinteger(kind=I4P)Box dash type (box dt), 1 solid.
key_titlecharacter(len=:)allocatableKey title, a row above the entries (gnuplot set key title).
key_title_anchorcharacter(len=6)Its anchor: start (gnuplot left), middle or end (right).
title_offsetreal(kind=R8P)Title shift [characters], set title offset.
title_offset_systemcharacter(len=9)Its coordinate systems: character, graph (plot fractions), screen.
title_anchorcharacter(len=6)Title justification, set title left|right: start, middle or end, at the centre.
title_colorcharacter(len=24)Title color, set title tc; empty for the text's.
title_fonttype(font_object)Title font, set title font "...".
label_fonttype(font_object)x, y, y2, x2, r, z, cb label fonts, set xlabel font.
cblabel_fonttype(font_object)Color box label font, set cblabel font.
key_fonttype(font_object)Key font (entries and title), set key font.
label_offsetreal(kind=R8P)x, y, y2, x2, r, z, cb label shifts [characters, y up], set xlabel offset X,Y.
label_colorcharacter(len=24)x, y, y2, x2, r, z, cb label colors, set xlabel tc.
label_rotatedlogicalx, y, y2, x2, r, z, cb labels rotated as given (set xlabel rotate [by A]|norotate), drawn so in 3D views.
label_rotatereal(kind=R8P)Their rotations [deg, counterclockwise].
label_parallellogicalAlong their axes in 3D views (rotate parallel).
cblabel_norotatelogicalThe color box label horizontal (set cblabel norotate; gnuplot's is vertical by default).
clearedlogicalIts box painted with the page color first (gnuplot's clear in a multiplot).
margin_userreal(kind=R8P)Left, right, top, bottom margins set (gnuplot set lmargin...): characters, or a page fraction with margin_screen; negative: computed.
margin_screenlogicalThe margin is at screen F: the border there.
key_outsidelogicalKey outside the plot area (gnuplot outside).
key_margincharacter(len=6)top or bottom margin (gnuplot above, below), else empty.
key_horizontallogicalEntries side by side, in rows.
key_atlogicalKey placed at key_xy (gnuplot set key at).
key_xyreal(kind=R8P)Key position, in key_system coordinates.
key_systemcharacter(len=6)Coordinate systems of key_xy: first, second, graph, screen.
originreal(kind=R8P)Bottom left corner, page fraction (set origin).
sizereal(kind=R8P)Width, height, page fraction (set size).
fill_defaulttype(style_object)Fill of the filled styles, set style fill (its fill components only).
boxwidthreal(kind=R8P)Box width, set boxwidth; 0 for auto (boxes touching).
boxdepthreal(kind=R8P)Box depth of splot with boxes (set boxdepth): 0 a flat front face, -1 square.
boxwidth_relativelogicalboxwidth scales the auto width.
histogram_rowstackedlogicalHistograms stacked by row, else clustered.
histogram_gapreal(kind=R8P)Gap between clusters [bar slots].
histogram_modeinteger(kind=I4P)Layout of the histograms: HIST_CLUSTERED, HIST_ROWSTACKED, HIST_COLUMNSTACKED, HIST_ERRORBARS.
histogram_lwreal(kind=R8P)Error bar width of errorbars [px], 0: the series'.
errorbar_sizereal(kind=R8P)Error bar and whisker cap length, in CAP_LENGTH units (gnuplot set errorbars SIZE, 0 small).
hist_title_colorcharacter(len=:)allocatableColor of the histogram group titles (set style histogram title tc), the frame's if unallocated.
hist_title_offsetreal(kind=R8P)Their offset [characters, y upward].
hist_title_fonttype(font_object)Their font (title font "...").
errorbar_colorcharacter(len=:)allocatableError bar color (set errorbars lc), the series' if unallocated.
errorbar_lwreal(kind=R8P)Error bar width [px] (set errorbars lw), 0: the series'.
hist_groupinteger(kind=I4P)Group of the histograms plotted next (newhistogram).
hist_at_setlogicalThe next group starts at hist_at.
hist_atreal(kind=R8P)Start of the next group.
hist_titlecharacter(len=:)allocatableTitle of the next group.
color_shiftinteger(kind=I4P)Shift of the default linetype colors of the next series (gnuplot newhistogram lt N).
palettetype(palette_object)Palette of the images, set palette.
linecolorscharacter(len=9)allocatableLinetype colors, set colorsequence; unallocated: gnuplot's.
cbaxistype(axis_object)Color axis of the images, set cbrange; tight, see set_defaults.
colorboxlogicalDraw the color box of the images.
cboxtype(colorbox_object)Color box placement and look, set colorbox.
canvasreal(kind=R8P)Page width and height being rendered [px].
notestype(label_object)allocatableLabels, gnuplot set label.
arrowstype(arrow_object)allocatableArrows, gnuplot set arrow.
objectstype(shape_object)allocatableObjects, gnuplot set object.
pixmapstype(pixmap_object)allocatableImages from PNG files, gnuplot set pixmap.
x2_risereal(kind=R8P)Height of the rotated x2 tick labels above their gap [px], 0 if not rotated (set by render from the text widths).
readoutlogicalDraw the readouts.
readout_hcharacter(len=6)Readout block horizontal position: left, center, right.
readout_vcharacter(len=6)Readout block vertical position: top, center, bottom.
readout_horizontallogicalReadouts side by side, else in a column.
readout_opaquelogicalWindow behind the readouts over a plot.
readout_sizereal(kind=R8P)Digit height [px]; 0 for the default, which fills a panel of readouts alone.
polarlogicalPolar coordinates (set polar): the series are theta:r.
degreeslogicalAngles in degrees (set angles degrees), else radians.
theta_originreal(kind=R8P)Direction of theta = 0 (set theta) [deg, counterclockwise from the right].
theta_clockwiselogicalTheta grows clockwise.
three_dlogicalA 3D panel (gnuplot splot): its series have heights, drawn through its view.
zaxistype(axis_object)Height axis of a 3D panel: zrange, ztics, zlabel.
view3dtype(view3d_object)View of a 3D panel: set view, set xyplane.
scene3dtype(scene3d_object)Its scene, for an HTML page's mouse rotation.
scene_onlogicalThe scene being recorded (view3d_scene).
layout_ownlogicalA panel of a multiplot layout in its own origin, size box (gnuplot: they override the layout for it).
box3dreal(kind=R8P)gnuplot's panel box (set origin, set size: left, bottom, width, height [page fractions]) where a 3D view lies; negative: the rendering box.
page_xtype(axis_object)Page abscissa [px] of the projected series of a 3D view.
page_ytype(axis_object)Page ordinate [px, negated] of the projected series of a 3D view.
pm3dtype(pm3d_object)pm3d settings of a 3D panel: set pm3d.
contourtype(contour_object)Contour settings of a 3D panel: set contour, set cntrparam.
dgrid3dtype(dgrid3d_object)Gridding of the scattered 3D data: set dgrid3d.
raxistype(axis_object)Radial axis: rrange, rtics.
raxis_onlogicalDraw the radial axis (set|unset raxis).
taxistype(axis_object)Angle range of the plotted functions, trange.
tticstype(tics_object)Theta labels around the polar plot; none until set, see set_defaults.
grid_polarreal(kind=R8P)Spoke step of the polar grid [deg]; 0: rectangular grid.
borderinteger(kind=I4P)Border sides (gnuplot mask): 1 bottom, 2 left, 4 top, 8 right.
border_polarlogicalCircle at the largest r (set border polar).
ratioreal(kind=R8P)Plot area height over width (set size ratio, square is 1); 0 for none; negative -R: a y unit R x units long (ratio -1, equal units).
boxplottype(boxplot_style)Layout of the boxplots, set style boxplot.
paxestype(paxis_object)allocatableParallel axes p1, p2, ... (set paxis), as many as set.
spiderplotlogicalSpider plot coordinates (set spiderplot).
spider_styletype(style_object)Polygons of the spider plots (set style spiderplot).
grid_spiderlogicalWeb of the spider plot (set grid spiderplot).
grid_lineslogicalGrid lines at the x, y, x2, y2 major ticks and the x, y minor ticks (gnuplot set grid x y x2 y2 mx my); none: x and y.
grid_frontlogicalGrid over the data (gnuplot set grid front).
border_lccharacter(len=:)allocatableBorder line color, unallocated for the theme's frame color.
border_lwreal(kind=R8P)Border line width [px].
border_dtinteger(kind=I4P)Border dash type, 1 solid.
zero_axeslogicalLines at y = 0, x = 0, y2 = 0, x2 = 0 (gnuplot set xzeroaxis, yzeroaxis, x2zeroaxis, y2zeroaxis).
zero_lccharacter(len=:)allocatableZero axes line color, unallocated for the frame color.
zero_lwreal(kind=R8P)Zero axes line width [px].
zero_dtinteger(kind=I4P)Zero axes dash type, gnuplot's dots (lt 0) by default.
grid_lccharacter(len=:)allocatableGrid line color, unallocated for the theme's.
grid_lwreal(kind=R8P)Grid line width [px].
grid_dtinteger(kind=I4P)Grid dash type, 0 for foresight's dots.
grid_cblogicalGrid lines across the color box at its major and minor ticks (set grid cb mcb).
wallstype(shape_object)allocatableThe grid walls of a 3D view (set wall y0|x0|y1|x1|z0), 5 once set (allocatable: nvfortran 26.9 copies a fixed array of them shallowly, freeing their points twice).
wall_onlogicalThose drawn.
cfill_modeinteger(kind=I4P)set contourfill: 0 auto N, 1 ztics, 2 cbtics.
cfill_ninteger(kind=I4P)set contourfill auto N: the slices.
cfill_ltinteger(kind=I4P)set contourfill firstlinetype N (-1: palette).
title_boxedlogicalTitle on the background (set title boxed).
hist_title_boxedlogicalHistogram group titles on the background.
label_boxedinteger(kind=I4P)Axis labels on the background (set xlabel boxed): bit k-1 for label k (x, y, y2, x2).
link_x2logicalx2 linked to x (gnuplot set link x2): its range x's.
link_y2logicaly2 linked to y (set link y2).
link_x2_vialogicalThe x2 link maps through link_maps(1:2).
link_y2_vialogicalThe y2 link maps through link_maps(3:4).
link_mapstype(expression_object)allocatablevia and inverse of x2 (1, 2) and y2 (3, 4), of x (y); of the nonlinear x (5, 6) and y (7, 8), of their values.
nonlinear_xlogicalx a nonlinear axis (gnuplot set nonlinear x), maps 5, 6.
nonlinear_ylogicaly a nonlinear axis, maps 7, 8.
colormapstype(colormap_object)allocatableNamed colormaps of the series (colormap index).

Type-Bound Procedures

NameAttributesDescription
add_seriespass(self)Add a data series.
drop_lastpass(self)Forget the last series.
resamplepass(self)Samples of a function series.
last_drawablepass(self)Whether the last series has a valid point.
data_extentpass(self)Extent of the placeable data.
series_extentpass(self)Extent of a series on its axes.
axes_extentpass(self)Extent of the placeable data, per axis.
x2_roompass(self)Room of the second x axis above the plot.
renderpass(self)Render the panel.
set_defaultspass(self)Settings of a new panel beyond its components' defaults.
xlabels_extentpass(self)Extent of the rotated x tick labels.
group_rowspass(self)Lines of the histogram group titles.
stacked_columnpass(self)Whether a series is a column stack.
stack_namespass(self)The column stack naming the key rows.
draw_group_titlespass(self)Draw the histogram group titles.
draw_framepass(self)Draw border, ticks, labels and title.
draw_gridpass(self)Draw the grid.
draw_polar_axespass(self)Draw the radial axis and the theta labels.
draw_polar_gridpass(self)Draw the polar grid.
page_anglepass(self)Page angle of a theta.
draw_keypass(self)Draw the key.
draw_readoutspass(self)Draw the readouts.
key_layoutpass(self)Key size and entry grid.
key_samplepass(self)Key sample length.
grid_dash_arraypass(self)Grid dash array.
draw_zero_axespass(self)Draw the zero axes.
key_placepass(self)Where the key lies.
draw_seriespass(self)Draw a series.
has_titlepass(self)Whether the panel has a title.
title_rowspass(self)Lines of the title.
is_readoutpass(self)Whether a series is a readout.
has_imagepass(self)Whether the panel has an image.
draw_colorboxpass(self)Draw the color box.
draw_piepass(self)Draw a pie panel.
draw_gaugespass(self)Draw a panel of gauges.
draw_radarpass(self)Draw a radar panel.
draw_rosepass(self)Draw a rose panel.
draw_parallelpass(self)Draw a parallel axis panel.
draw_spiderpass(self)Draw a spider plot panel.
parallel_axispass(self)A parallel axis set up for its values.
colorbox_widthpass(self)Room of the color box [px].
colorbox_heightpass(self)Room of a horizontal color box below the plot [px].
place_plot_areapass(self)Plot area from the margins.
map_geometry_ofpass(self)Geometry of a map view.
map_surfacespass(self)Series of a map view as drawn (pm3d quadrangles).
mask_polygonspass(self)Polygons of the last with mask item.
draw_map_framepass(self)Border, ticks, labels and title of a map view.
render_view3dpass(self)Render a 3D view.
draw_view3d_framepass(self)Box, ticks and labels of a 3D view.
setup_axespass(self)Effective ranges and ticks.

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_axes

Subroutines ​

ellipse_shapes ​

Ellipse diameters and angles of series at (x, y): major alone for both diameters, a negative one (or none) for the default size; the extents of the sized ones widen the autoscale; bad the error, empty if none. A module procedure: as an internal one of add_series, reading its optional dummies, nvfortran 26.9 filled the diameters with garbage once a module it uses changed (foresight_mathlib, 2026-11-24).

fortran
subroutine ellipse_shapes(series, x, y, bad, angle, major, minor)

Arguments

NameTypeIntentAttributesDescription
seriestype(series_object)inoutSeries.
xreal(kind=R8P)inAbscissae.
yreal(kind=R8P)inOrdinates.
badcharacter(len=:)outallocatableError, empty if none.
anglereal(kind=R8P)inoptionalAngles [deg].
majorreal(kind=R8P)inoptionalMajor diameters [x units].
minorreal(kind=R8P)inoptionalMinor diameters [y units].

Call graph

add_series ​

Add the series (x, y) with gnuplot-like style options; unset options take gnuplot defaults.

The color from the palette, as gnuplot lc palette: palette_z maps a value per point over the color axis (z, lines, points, linespoints and impulses; a segment takes the color of its end point, a point of undefined value is not drawn, nor the segment to it, but counts for the autoscale, as gnuplot), palette_cb one color axis value, palette_frac one fraction of the palette (0 to 1) for the whole series. The color axis then spans the palette_z values too, and the color box is drawn.

Error bar styles need their bounds: ylow/yhigh for yerrorbars, xlow/xhigh for xerrorbars, all four for xyerrorbars. axes is gnuplot's x1y1 (default), x1y2, x2y1 or x2y2: x2 the second x axis, y2 the second y axis. A readout takes its format (DEFAULT_READOUT_FORMAT if absent) and only the color among the style options.

boxes take the box widths width (NaN for the default), else the panel boxwidth, else touching boxes; filledcurves fill to the line y = base, between ylow and y, or the closed polygon of the points. fs (gnuplot fill style words, 'solid 0.5 noborder') overrides the panel fill of either; histograms take the fill too. xlabels are text labels of the abscissae (blank for none), replacing the x ticks.

boxerrorbars are boxes (as boxes) with the y error bars ylow/yhigh; boxxyerror rectangles from xlow to xhigh, ylow to yhigh; candlesticks and financebars take y the opening (or box start), ylow the low, yhigh the high and close the closing (or box end) values, candlesticks a width (else boxwidth, else a few pixels) and whiskerbars. A boxplot takes the values y at the position x(1), one box per level of factors if given (separation apart, named on the x axis), its width width(1) (else boxwidth, else 0.5); the statistics are computed here, with the panel boxplot style.

vectors go from each point by dx, dy; arrows by length and angle; both with head words. ellipses take major (both diameters if alone), minor and angle (the default 5% x 3% of the plot without diameters); polygons close each NaN-separated run of points; labels write labels with the label options; sectors are the annular sectors from azimuth x and radius y by angle and width, about origins.

fortran
subroutine add_series(self, x, y, title, with, lc, lw, dt, ps, xlow, xhigh, ylow, yhigh, axes, pt, format, width, base, fs, xlabels, z, radius, angles, donut, scale, linear, close, whiskerbars, factors, dx, dy, length, angle, major, minor, labels, label, head, origins, curve, channels, at, colors, palette_z, palette_cb, palette_frac)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inoutPanel.
xreal(kind=R8P)inAbscissae.
yreal(kind=R8P)inOrdinates.
titlecharacter(len=*)inoptionalKey title, empty or absent for none.
withcharacter(len=*)inoptionalPlotting style: lines (default), points, linespoints.
lccharacter(len=*)inoptionalLine color (SVG color); default from the linetype colors.
lwreal(kind=R8P)inoptionalLine width [px].
dtinteger(kind=I4P)inoptionalDash type, 1..5.
psreal(kind=R8P)inoptionalPoint size scale factor.
xlowreal(kind=R8P)inoptionalHorizontal error bar starts.
xhighreal(kind=R8P)inoptionalHorizontal error bar ends.
ylowreal(kind=R8P)inoptionalVertical error bar starts.
yhighreal(kind=R8P)inoptionalVertical error bar ends.
axescharacter(len=*)inoptionalAxes of the series: x1y1, x1y2, x2y1 or x2y2.
ptinteger(kind=I4P)inoptionalgnuplot point type: 0 a dot, 1.. the shapes.
formatcharacter(len=*)inoptionalReadout format.
widthreal(kind=R8P)inoptionalBox widths.
basereal(kind=R8P)inoptionalBaseline of a fill.
fscharacter(len=*)inoptionalFill style words.
xlabelscharacter(len=*)inoptionalText labels of the abscissae.
zreal(kind=R8P)inoptionalImage values (column, row): x and y are then the pixel centres, evenly spaced and increasing.
radiusreal(kind=R8P)inoptionalCircle radii [x units], NaN for the default.
anglesreal(kind=R8P)inoptionalWedge start and end angles (2, point) [deg].
donutreal(kind=R8P)inoptionalPie hole, a fraction of the radius (0 to below 1).
scalereal(kind=R8P)inoptionalGauge scale: the values at the start and end of the sweep.
linearlogicalinoptionalRose sectors with the radius (not the area) by value.
closereal(kind=R8P)inoptionalClosing prices of candlesticks and finance bars (y the opening ones), or the box ends of a box-and-whisker plot.
whiskerbarsreal(kind=R8P)inoptionalCrossbars of the candlestick whiskers, a fraction of the box width.
factorscharacter(len=*)inoptionalFactor level of each value of a boxplot.
dxreal(kind=R8P)inoptionalVector extents along x.
dyreal(kind=R8P)inoptionalVector extents along y.
lengthreal(kind=R8P)inoptionalArrow lengths (> 0 x units, in (-1, 0) plot width fraction).
anglereal(kind=R8P)inoptionalArrow or ellipse angles, sector angular extents [the angle unit for sectors, else deg].
majorreal(kind=R8P)inoptionalEllipse major diameters [x units].
minorreal(kind=R8P)inoptionalEllipse minor diameters [y units].
labelscharacter(len=*)inoptionalTexts of labels.
labelcharacter(len=*)inoptionalLabel options: gnuplot with labels words.
headcharacter(len=*)inoptionalArrowhead words: head, heads, nohead, backhead, filled, empty, nofilled.
originsreal(kind=R8P)inoptionalSector centres (2, point), [0, 0] if absent.
curvecharacter(len=*)inoptionalFilled curve options: gnuplot closed, x1, x2, xy=X,Y, above, below (with base or a band).
channelsreal(kind=R8P)inoptionalRGB image colors (4, column, row), 0 to 255: red, green, blue, alpha; z then its red ones.
atreal(kind=R8P)inoptionalPosition of a parallel axis (its number if absent).
colorscharacter(len=*)inoptionalColor of each point (gnuplot lc variable).
palette_zreal(kind=R8P)inoptionalPalette value of each point (gnuplot lc palette z).
palette_cbreal(kind=R8P)inoptionalA color axis value (gnuplot lc palette cb).
palette_fracreal(kind=R8P)inoptionalA fraction of the palette (gnuplot lc palette frac).

Call graph

data_extent ​

Extent of the series points placeable on their axes, the whole data before any range is set: x over the series on the first x axis, y per axis (1 the first, 2 the second); see axes_extent.

Attributes: pure

fortran
subroutine data_extent(self, xmin, xmax, ymin, ymax, found)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
xminreal(kind=R8P)outSmallest abscissa, first x axis.
xmaxreal(kind=R8P)outLargest abscissa, first x axis.
yminreal(kind=R8P)outSmallest ordinate, per y axis.
ymaxreal(kind=R8P)outLargest ordinate, per y axis.
foundlogicaloutAny placeable point, per y axis.

Call graph

axes_extent ​

Extent of the series points placeable on their axes, the whole data before any range is set, per axis (1 the first, 2 the second): x over the series on each x axis, y over the series on each y axis.

Attributes: pure

fortran
subroutine axes_extent(self, xmin, xmax, ymin, ymax, found, xfound)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
xminreal(kind=R8P)outSmallest abscissa, per x axis.
xmaxreal(kind=R8P)outLargest abscissa, per x axis.
yminreal(kind=R8P)outSmallest ordinate, per y axis.
ymaxreal(kind=R8P)outLargest ordinate, per y axis.
foundlogicaloutAny placeable point, per y axis.
xfoundlogicaloutAny placeable point, per x axis.

Call graph

series_extent ​

Widen the extent of the axes of the s-th series (index 1 the first axis, 2 the second) to its placeable points; windowed: only the points inside the range of its x axis (y autoscaling, as gnuplot).

Attributes: pure

fortran
subroutine series_extent(self, s, windowed, xmin, xmax, ymin, ymax, found, xfound)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
sinteger(kind=I4P)inSeries index.
windowedlogicalinCount only the points inside the x range.
xminreal(kind=R8P)inoutSmallest abscissa, per x axis.
xmaxreal(kind=R8P)inoutLargest abscissa, per x axis.
yminreal(kind=R8P)inoutSmallest ordinate, per y axis.
ymaxreal(kind=R8P)inoutLargest ordinate, per y axis.
foundlogicalinoutAny placeable point, per y axis.
xfoundlogicalinoutAny placeable point, per x axis.

Call graph

set_defaults ​

Settings of a new panel that its components' default initialization does not give: the second y axis without ticks (nor mirror) until set, the color axis tight to the values, no theta labels until set. Set here, where a panel is made, not as component initializers: nvfortran 26.9 stops on a structure constructor of axis_object or tics_object (deferred-length character components) in a component's default initialization.

Attributes: pure

fortran
subroutine set_defaults(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inoutPanel.

Call graph

render ​

Render the panel into the pixel box of top-left corner (x0, y0) and size width x height, on a page of canvas width and height (the box when absent), where a user color box lies. Shift left [px]. Shift down [px].

fortran
subroutine render(self, backend, x0, y0, width, height, font_size, canvas)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inoutPanel.
backendclass(backend_object)inoutOutput device.
x0real(kind=R8P)inBox left side [px].
y0real(kind=R8P)inBox top side [px].
widthreal(kind=R8P)inBox width [px].
heightreal(kind=R8P)inBox height [px].
font_sizereal(kind=R8P)inFont size [px].
canvasreal(kind=R8P)inoptionalPage width and height [px].

Call graph

rotated_anchor ​

Anchor of an x tick label rotated by angle [deg, counterclockwise] at the tick abscissa p [px], hanging from base [px]: its glyph band centred on the tick, GAP below the base as an upright label, as gnuplot places them.

Attributes: pure

fortran
subroutine rotated_anchor(p, base, angle, font_size, x, y)

Arguments

NameTypeIntentAttributesDescription
preal(kind=R8P)inTick abscissa [px].
basereal(kind=R8P)inOrdinate the labels hang from [px].
anglereal(kind=R8P)inLabel angle [deg].
font_sizereal(kind=R8P)inFont size [px].
xreal(kind=R8P)outAnchor abscissa [px].
yreal(kind=R8P)outAnchor ordinate [px].

Call graph

y_rotated_anchor ​

Baseline anchor and text anchor of a y (second: y2) tick label rotated by tics%rotate [deg, counterclockwise] at the tick ordinate p [px], base the border (moved by outward ticks) [px], as gnuplot 6.0's svg places them: rotate (justified center, 90 degrees) reads upward centred on the tick, its baseline 1.925 (y2: 1.825) font sizes out of the border; rotate by A has its glyph band centred on the tick, from a point 1.253 (y2: 1.5) font sizes out, right-justified (y2: left) unless justified.

Attributes: pure

fortran
subroutine y_rotated_anchor(tics, base, p, second, font_size, x, y, anchor)

Arguments

NameTypeIntentAttributesDescription
ticstype(tics_object)inAxis tick settings.
basereal(kind=R8P)inBorder abscissa, moved by outward ticks [px].
preal(kind=R8P)inTick ordinate [px].
secondlogicalinThe y2 axis.
font_sizereal(kind=R8P)inFont size [px].
xreal(kind=R8P)outBaseline anchor abscissa [px].
yreal(kind=R8P)outBaseline anchor ordinate [px].
anchorcharacter(len=6)outstart, middle or end.

Call graph

draw_group_titles ​

The title of each histogram group centred under its bars (the middle of its rows, or stacks), on baseline, moved by hist_title_offset (gnuplot's characters: 0.7 of the font size wide, 1.5 high), in hist_title_color.

fortran
subroutine draw_group_titles(self, backend, left, right, baseline, font_size)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
backendclass(backend_object)inoutOutput device.
leftreal(kind=R8P)inPlot area left [px].
rightreal(kind=R8P)inPlot area right [px].
baselinereal(kind=R8P)inText baseline [px].
font_sizereal(kind=R8P)inFont size [px].

Call graph

draw_frame ​

Draw border, ticks (mirrored if so set), tick labels, axis labels and title. Label written. Superscript written.

Label written. Superscript written.

Rotated labels extent [px]: below, left, right.

Title shift [px, y down].

fortran
subroutine draw_frame(self, backend, area, x0, y0, x1, font_size)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
backendclass(backend_object)inoutOutput device.
areareal(kind=R8P)inPlot area: left, right, top, bottom [px].
x0real(kind=R8P)inBox left side [px].
y0real(kind=R8P)inBox top side [px].
x1real(kind=R8P)inBox right side [px].
font_sizereal(kind=R8P)inFont size [px].

Call graph

map_surfaces ​

The series of a map view as drawn: the pm3d surfaces (with pm3d, or every surface with set pm3d implicit) as colored quadrangles (foresight_pm3d) before their surface, filled solid, unbordered, with crisp edges, colored by the palette over their corners' values (or in their fc color); each carries two lone points (not drawn) of the whole surface's color range, the color axis autoscaled on the data as gnuplot's. The surfaces themselves are drawn unless unset surface, a with pm3d item never.

fortran
subroutine map_surfaces(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inoutPanel.

Call graph

mask_polygons ​

The polygons of the panel's last with mask item (NaN separated: its blocks, or scans), none without one; gnuplot keeps the last mask read.

fortran
subroutine mask_polygons(self, mx, my)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
mxreal(kind=R8P)outallocatablePolygons abscissae.
myreal(kind=R8P)outallocatablePolygons ordinates.

Call graph

view3d_pm3d_marks ​

The pm3d surfaces of a 3D view (with pm3d items, the surfaces of set pm3d implicit), before the axes are set up: each a pending copy (its quadrangles built once the view is known, view3d_pm3d_quads) after two lone points of its color range (the color axis autoscaled on them, its box drawn, as gnuplot's); an implicit one before its surface, as gnuplot's pm3d_draw_one, a with pm3d item in its place.

fortran
subroutine view3d_pm3d_marks(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inoutPanel.

Call graph

z_marks ​

Two lone points of the color range of the heights of one within the x, y and z ranges set (gnuplot's: a point out of range does not autoscale the color axis), as view3d_pm3d_marks's: invisible, keyless.

fortran
subroutine z_marks(self, one, blank, marks, found)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
onetype(series_object)inThe item.
blanktype(series_object)inA series of default components.
markstype(series_object)outThe marks.
foundlogicaloutSome point in range.

Call graph

view3d_scene ​

The scene of a 3D view (foresight_scene3d), for the HTML viewer's mouse rotation: the base of the box and the z axis, the major ticks' labels and the axis labels, then each series' lines (its scans and, on a grid, the crossing curves; contours on the base at its height) and points. pm3d surfaces are added as they are colored (scene_quads). A sketch of the view: the static page stays foresight's drawing of the script's view.

fortran
subroutine view3d_scene(self, f)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inoutPanel.
ftype(view3d_frame)inThe view.

Call graph

scene_quads ​

The pm3d quadrangles of the surface s at the surface (gnuplot's pm3d_plot at s), in their palette colors, added to the scene of the view.

fortran
subroutine scene_quads(self, s, f, p)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inoutPanel.
sinteger(kind=I4P)inSurface.
ftype(view3d_frame)inThe view.
ptype(palette_object)inEffective palette.

Call graph

view3d_pm3d_quads ​

The pm3d quadrangles of the pending surfaces of a 3D view (view3d_pm3d_marks), gnuplot's pm3d_plot: at the surface, the base and the top (set pm3d at, in its order), projected on the page; in gnuplot's order of the scans and of the points (pm3d_rearrange_part: scansautomatic by the depths of the first and last points, scansforward, scansbackward), each surface in its place; with depthorder the quadrangles of every surface sorted by their mean depth (base: of the base below them) and drawn after all the series (gnuplot's depth queue). Each is filled in its palette color (or fc, or lc rgb variable), outlined with set pm3d border. Module procedures only (nvfortran 26.9, bug 32: no internal procedure in a procedure growing arrays by move_alloc). The key entry.

fortran
subroutine view3d_pm3d_quads(self, f, p)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inoutPanel.
ftype(view3d_frame)inThe view.
ptype(palette_object)inEffective palette.

Call graph

depth_objects ​

The depthorder polygons of a 3D view (set object N polygon depthorder) queued with the pm3d quadrangles, as gnuplot's do_polygon: their corners in the view (axis values or graph fractions), the mean depth of their corners, their fill color (fc ls N: line style N+1's on their back, gnuplot's pm3d_side), their fill style, outlined by set pm3d border. Up to 12 corners (gnuplot's).

fortran
subroutine depth_objects(self, f, q)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
ftype(view3d_frame)inThe view.
qtype(pm3d_queue)inoutDepth queue.

Call graph

box3d_quads ​

The faces of splot with boxes (gnuplot's plot3d_boxes): for each point a front face from z = 0 (clipped to the z range) to its height, x the box width about it (set boxwidth, else 1), clipped to the x range; with set boxdepth D (square: the width scaled by the y and x ranges) its back, left, right and top faces, y +- D/2 clipped to the y range. Each in the point's color (lc variable, fc rgb variable; lit with set pm3d lighting, gnuplot's illuminate_one_quadrangle) or the item's fill (else line) color, in its fill style, bordered by its fill border. Queued with depth, else sorted among themselves by the depth of their base (gnuplot's flush with base_sort). keyed the key entry: a fill sample alone. Channels. Known. Packed color.

fortran
subroutine box3d_quads(pm, one, f, depth, xaxis, yaxis, zaxis, boxwidth, boxdepth, rot_x, rot_z, quads, keyed, q)

Arguments

NameTypeIntentAttributesDescription
pmtype(pm3d_object)inpm3d settings.
onetype(series_object)inThe item.
ftype(view3d_frame)inThe view.
depthlogicalinQueued, not drawn in place.
xaxistype(axis_object)inx axis.
yaxistype(axis_object)iny axis.
zaxistype(axis_object)inz axis.
boxwidthreal(kind=R8P)inset boxwidth, 0 none.
boxdepthreal(kind=R8P)inset boxdepth, 0 none, -1 square.
rot_xreal(kind=R8P)inView rotation about x [deg].
rot_zreal(kind=R8P)inView rotation about z [deg].
quadstype(series_object)outIts faces (in place).
keyedtype(series_object)outIts key entry.
qtype(pm3d_queue)inoutDepth queue.

Call graph

polygon3d_quads ​

The polygons of splot ... with polygons (gnuplot's plot3d_polygons): each scan of the item (its blocks) one polygon, a triangle a quadrangle with its first corner again; in the first point's color (lc variable, fc rgb variable) or the fill color (fc, else the fill's border color: black by default), lit by set pm3d lighting (gnuplot's illuminate_one_quadrangle: its first 4 corners in the view); its depth the mean of its corners; queued with depth, else sorted among themselves. Channels. Known. Packed color.

fortran
subroutine polygon3d_quads(pm, one, f, depth, rot_x, rot_z, quads, q)

Arguments

NameTypeIntentAttributesDescription
pmtype(pm3d_object)inpm3d settings.
onetype(series_object)inThe item.
ftype(view3d_frame)inThe view.
depthlogicalinQueued, not drawn in place.
rot_xreal(kind=R8P)inView rotation about x [deg].
rot_zreal(kind=R8P)inView rotation about z [deg].
quadstype(series_object)outIts polygons (in place).
qtype(pm3d_queue)inoutDepth queue.

Call graph

zerror_quads ​

The quadrangles of with zerrorfill (gnuplot's plot3d_zerrorfill): between each two defined points of the item in turn, from their low ends to their high ones, in its fill color (fc, else its line color); appended to the depth queue with depth (set pm3d depthorder, its base too), else sorted among themselves by their mean depth (gnuplot flushes the queue after each zerrorfill item: later items cover earlier ones).

fortran
subroutine zerror_quads(pm, one, f, depth, quads, q)

Arguments

NameTypeIntentAttributesDescription
pmtype(pm3d_object)inpm3d settings.
onetype(series_object)inThe item.
ftype(view3d_frame)inThe view.
depthlogicalinQueued, not drawn in place.
quadstype(series_object)outIts quadrangles (in place).
qtype(pm3d_queue)inoutDepth queue.

Call graph

pm3d_surface_quads ​

The pm3d quadrangles of the surface one in the view f (view3d_pm3d_quads): projected, in its colors (those at the surface lit with set pm3d lighting, gnuplot's apply_lighting_model), appended to the depth queue q with depth. Unlit color, 0 to 1. Transparency byte. Packed color. Corners (linear spaces). Gray level.

Channels. Known.

Channels. Known. Packed color. First row of the quadrangle.

fortran
subroutine pm3d_surface_quads(pm, xaxis, yaxis, zaxis, cbaxis, one, f, p, depth, rot_x, rot_z, quads, q, lows, highs, slice_colors)

Arguments

NameTypeIntentAttributesDescription
pmtype(pm3d_object)inpm3d settings.
xaxistype(axis_object)inx axis.
yaxistype(axis_object)iny axis.
zaxistype(axis_object)inz axis.
cbaxistype(axis_object)inColor axis.
onetype(series_object)inSurface.
ftype(view3d_frame)inThe view.
ptype(palette_object)inEffective palette.
depthlogicalinQueued, not drawn in place.
rot_xreal(kind=R8P)inView rotation about x [deg].
rot_zreal(kind=R8P)inView rotation about z [deg].
quadstype(series_object)outIts quadrangles (in place).
qtype(pm3d_queue)inoutDepth queue.
lowsreal(kind=R8P)inoptionalwith contourfill: slice lows.
highsreal(kind=R8P)inoptionalSlice highs.
slice_colorscharacter(len=24)inoptionalSlice colors.

Call graph

map_contourfill_slices ​

The slices of with contourfill in a map view (contourfill_slices): the z axis autoscaled on the heights as in a 3D view (one local axis per procedure: nvfortran 26.9, bug 26).

fortran
subroutine map_contourfill_slices(self, lows, highs, mids, colors, zr)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
lowsreal(kind=R8P)outallocatableSlice lows.
highsreal(kind=R8P)outallocatableSlice highs.
midsreal(kind=R8P)outallocatableSlice color values.
colorscharacter(len=24)outallocatableSlice colors.
zrreal(kind=R8P)outz axis range.

Call graph

map_contourfill_cb ​

The slices of with contourfill in a map view, its color axis autoscaled on the heights (map_contourfill_slices).

fortran
subroutine map_contourfill_cb(self, za, lows, highs, mids, colors)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
zatype(axis_object)inz axis, set up.
lowsreal(kind=R8P)outallocatableSlice lows.
highsreal(kind=R8P)outallocatableSlice highs.
midsreal(kind=R8P)outallocatableSlice color values.
colorscharacter(len=24)outallocatableSlice colors.

Call graph

contourfill_slices ​

The z slices of with contourfill and their colors (gnuplot's plot3d_contourfill, set contourfill): auto N equal slices of the z range of za; ztics (cbtics) from each major tick of za (ca) within the z range to the next; each in the palette color of its middle on the color axis ca (firstlinetype N: of linetypes N, N+1, ...).

fortran
subroutine contourfill_slices(self, za, ca, p, lows, highs, mids, colors)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
zatype(axis_object)inz axis, set up.
catype(axis_object)inColor axis, set up.
ptype(palette_object)inEffective palette.
lowsreal(kind=R8P)outallocatableSlice lows.
highsreal(kind=R8P)outallocatableSlice highs.
midsreal(kind=R8P)outallocatableSlice color values.
colorscharacter(len=24)outallocatableSlice colors.

Call graph

pm3d_scan_order ​

gnuplot's order of the scans and points of the surface one (pm3d_rearrange_part) over its list of scans, the file's last first for data (and the library's grids), in sampling order for a script's functions (sampled_scans): scansforward the list reversed, scansbackward and depthorder the list's; scansautomatic from the depths (at the floor) of the first and last defined points of the list's first scan (points from the last when the last lies no farther) and of the list's last scan at that point (the list reversed when it lies no nearer; from 3 scans, else the list's order).

Attributes: pure

fortran
subroutine pm3d_scan_order(pm, one, f, swap, back)

Arguments

NameTypeIntentAttributesDescription
pmtype(pm3d_object)inpm3d settings.
onetype(series_object)inSurface.
ftype(view3d_frame)inThe view.
swaplogicaloutScans from the last.
backlogicaloutPoints from the last.

Call graph

queue_init ​

An empty depth queue.

Attributes: pure

fortran
subroutine queue_init(q)

Arguments

NameTypeIntentAttributesDescription
qtype(pm3d_queue)outQueue.

Call graph

queue_add ​

A polygon px, py [px] of depth in color queued (its style set by queue_tag); the arrays grown by doubling, through temporaries (nvfortran 26.9, bug 31).

Attributes: pure

fortran
subroutine queue_add(q, px, py, depth, color)

Arguments

NameTypeIntentAttributesDescription
qtype(pm3d_queue)inoutQueue.
pxreal(kind=R8P)inCorner abscissae.
pyreal(kind=R8P)inCorner ordinates.
depthreal(kind=R8P)inDepth.
colorcharacter(len=*)inColor.

Call graph

queue_tag ​

The polygons queued after the first n0 in style (appended to the styles, through temporaries).

Attributes: pure

fortran
subroutine queue_tag(q, n0, style)

Arguments

NameTypeIntentAttributesDescription
qtype(pm3d_queue)inoutQueue.
n0integer(kind=I4P)inQueued before.
styletype(style_object)inTheir style.

Call graph

queue_order ​

The queued polygons by depth, farthest first (gnuplot's compare_quadrangles; stable on ties: insertion).

Attributes: pure

fortran
subroutine queue_order(q, order)

Arguments

NameTypeIntentAttributesDescription
qtype(pm3d_queue)inQueue.
orderinteger(kind=I4P)outallocatableSorted order.

Call graph

queue_series ​

The sorted polygons first to last of order as one series of polygons (corners and a NaN row each, each row its polygon's color).

Attributes: pure

fortran
subroutine queue_series(q, order, first, last, run)

Arguments

NameTypeIntentAttributesDescription
qtype(pm3d_queue)inQueue.
orderinteger(kind=I4P)inSorted order.
firstinteger(kind=I4P)inFirst.
lastinteger(kind=I4P)inLast.
runtype(series_object)inoutPolygons.

Call graph

queue_runs ​

The queue sorted by depth appended to drawn as series of polygons, a new one where the style changes (each polygon its item's fill and border).

fortran
subroutine queue_runs(q, drawn)

Arguments

NameTypeIntentAttributesDescription
qtype(pm3d_queue)inQueue.
drawntype(series_object)inoutallocatableSeries as drawn.

Call graph

queue_sorted ​

The queue (one item's) sorted by depth as one series of polygons (gnuplot's flush of a zerrorfill or boxes item).

Attributes: pure

fortran
subroutine queue_sorted(q, run)

Arguments

NameTypeIntentAttributesDescription
qtype(pm3d_queue)inQueue.
runtype(series_object)inoutPolygons.

Call graph

queue_append ​

The polygons of local queued in q.

Attributes: pure

fortran
subroutine queue_append(q, local)

Arguments

NameTypeIntentAttributesDescription
qtype(pm3d_queue)inoutQueue.
localtype(pm3d_queue)inAn item's queue.

Call graph

view3d_contours ​

The contour lines of the surfaces of a 3D view as lines with their heights after each surface (contour_series): on the base plane (set contour base, moved to it once the view is set up), on the surface (surface), or both (the base ones keeping the key entries).

fortran
subroutine view3d_contours(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inoutPanel.

Call graph

contour_label_series ​

The labels of the contour levels of the surface s (a function with labels), gnuplot's cntr3d_labels: on the base plane, at the points start, start + interval, ... of each contour line (set cntrlabel start N interval M), each the level's text (set cntrlabel format, leading blanks off), centred, boxed with the item; no key entry. Counted first, then filled (nvfortran 26.9: no character array grown by assignment, bug 31).

fortran
subroutine contour_label_series(self, s, drawn)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
sinteger(kind=I4P)inSurface series.
drawntype(series_object)inoutallocatableSeries as drawn.

Call graph

contour_series ​

The contour lines of the surface s as lines, gnuplot's: a series per level in linetypes after the surface's (or from firstlinetype), its width times the surface's, titled by the level's label (set cntrlabel format), the levels in gnuplot's order; onecolor: one series in the surface's color, no key entry. With heights (a 3D view) each keeps the heights of its lines.

fortran
subroutine contour_series(self, s, drawn, heights)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
sinteger(kind=I4P)inSurface series.
drawntype(series_object)inoutallocatableSeries as drawn.
heightslogicalinoptionalThe heights kept.

Call graph

surface_contours ​

The contour lines of the surface of a 3D series from its dataset (foresight_contour): its grid scans in gnuplot's order (the data's last first), as many points per row as its first, the points in the fixed x, y and z ranges, the heights' extent over the defined ones.

fortran
subroutine surface_contours(self, series, dataset, cx, cy, cz, level, first)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
seriestype(series_object)inSurface.
datasetinteger(kind=I4P)inIts dataset.
cxreal(kind=R8P)outallocatableLines, NaN separated.
cyreal(kind=R8P)outallocatableLines, NaN separated.
czreal(kind=R8P)outallocatableLines, NaN separated.
levelreal(kind=R8P)outallocatableLevel of each chunk.
firstlogicaloutallocatableFirst chunk of its level.

Call graph

pm3d_series ​

The pm3d quadrangles of a 3D series as a series of polygons (see map_surfaces); titled keeps its key entry (a with pm3d item; the quadrangles of an implicit pm3d have none); a mask item keeps the quadrangles whose first corner lies in a mask polygon (mx, my), as gnuplot's pm3d_plot. A quadrangle needs a corner within the x, y and z ranges set; at the surface alone (at s, no base nor top) gnuplot's clip z clips it to the z range set (clip_filled_polygon), its color that of the whole quadrangle; the color axis autoscales over the points within the ranges (the two lone points), not over the quadrangles' values.

fortran
subroutine pm3d_series(series, settings, xaxis, yaxis, zaxis, titled, mx, my, quads, lows, highs, mids, zrange, slice_colors)

Arguments

NameTypeIntentAttributesDescription
seriestype(series_object)inSurface.
settingstype(pm3d_object)inpm3d settings.
xaxistype(axis_object)inHorizontal axis.
yaxistype(axis_object)inVertical axis.
zaxistype(axis_object)inHeight axis.
titledlogicalinKeep the title.
mxreal(kind=R8P)inMask polygons abscissae, NaN separated.
myreal(kind=R8P)inMask polygons ordinates.
quadstype(series_object)outQuadrangles.
lowsreal(kind=R8P)inoptionalwith contourfill: slice lows.
highsreal(kind=R8P)inoptionalSlice highs.
midsreal(kind=R8P)inoptionalSlice color values.
zrangereal(kind=R8P)inoptionalz axis range.
slice_colorscharacter(len=24)inoptionalSlice colors (firstlinetype), else the palette's.

Call graph

map_depth_order ​

The polygons px, py (a NaN row after each), their color values pc and heights pz, reordered by their mean height, the highest first (a stable order): gnuplot's depth queue of a map view, seen from below.

Attributes: pure

fortran
subroutine map_depth_order(px, py, pc, pz)

Arguments

NameTypeIntentAttributesDescription
pxreal(kind=R8P)inoutAbscissae.
pyreal(kind=R8P)inoutOrdinates.
pcreal(kind=R8P)inoutColor values.
pzreal(kind=R8P)inoutHeights.

Call graph

draw_map_frame ​

The frame of a map view, gnuplot 6.0's (graph3d.c, its set view map branches): the border; the x ticks inward from the bottom (mirrored from the top), their labels below, the y ticks inward from the left (mirrored from the right), their labels at the left, with the lengths and gaps of gnuplot's projection (geo); the x label a line and a half below the tick labels, the y label left of the widest of them; the title above the plot. Texts are centred on their anchors, as gnuplot's svg terminal. Title shift [px, y down].

fortran
subroutine draw_map_frame(self, backend, geo, font_size)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
backendclass(backend_object)inoutOutput device.
geotype(map_geometry)inGeometry.
font_sizereal(kind=R8P)inFont size [px].

Call graph

render_view3d ​

Render a 3D view of the panel into the pixel box of top-left corner (x0, y0) and size width x height, as gnuplot 6.0's do_3dplot draws it (foresight_view3d's view3d_setup): the x, y and z ranges of the series, the back of the box (its back edges and verticals, the ticks and their labels), the series projected on the page and drawn as 2D series of page coordinates, the front of the box (its front edges, the axis labels), the key at the top right of the plot bounds and the title above them. The title, kept while turning.

Title shift [px, y down]. The box origin on the page [px]. The graph offset's end on the page [px].

fortran
subroutine render_view3d(self, backend, x0, y0, width, height, font_size)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inoutPanel.
backendclass(backend_object)inoutOutput device.
x0real(kind=R8P)inBox left side [px].
y0real(kind=R8P)inBox top side [px].
widthreal(kind=R8P)inBox width [px].
heightreal(kind=R8P)inBox height [px].
font_sizereal(kind=R8P)inFont size [px].

Call graph

draw_view3d_frame ​

The box of a 3D view, gnuplot 6.0's draw_3d_graphbox in its two passes (front: the front part, else the back): the base edges (border bits 1 to 8: front left, back left, front right, back right), the verticals (16 to 128: the z axis corner, back, right, front; unset ones from the base to the surface corners), the top edges (256 to 2048); the x and y ticks along the front (or back) base edges with their labels, the z ticks at the z axis corner, the grid on the base and the zero axes (back pass); the x, y and z labels (front pass).

fortran
subroutine draw_view3d_frame(self, backend, f, front, font_size, raw)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
backendclass(backend_object)inoutOutput device.
ftype(view3d_frame)inThe view.
frontlogicalinThe front pass, else the back one.
font_sizereal(kind=R8P)inFont size [px].
rawtype(series_object)inSeries as given (their corner heights).

Call graph

draw_grid ​

Draw grid lines at the ticks of grid_lines (the x and y major ones by default), in the grid style.

fortran
subroutine draw_grid(self, backend, area)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
backendclass(backend_object)inoutOutput device.
areareal(kind=R8P)inPlot area: left, right, top, bottom [px].

Call graph

draw_zero_axes ​

The zero axes in the plot area's unit square: y = 0 (xzeroaxis), x = 0 (yzeroaxis), y2 = 0, x2 = 0, where in range.

fortran
subroutine draw_zero_axes(self, backend)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
backendclass(backend_object)inoutOutput device.

Call graph

draw_polar_grid ​

Draw the polar grid in the plot area: rings at the major r ticks, spokes every grid_polar degrees of theta. Theta ticks. Their settings. A turn [deg].

fortran
subroutine draw_polar_grid(self, backend)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
backendclass(backend_object)inoutOutput device.

Call graph

draw_polar_axes ​

Draw the ticks of the radial axis (a line from the pole to the largest r towards the right of the page whatever the theta origin, drawn with the data) and their labels below it, as gnuplot; and the theta labels (ttics) outside the largest r, with ticks on the polar border (minor ones too, set mttics). Page geometry: hidden by the viewer while zoomed. Label distance [px]. Rotation [rad, clockwise].

fortran
subroutine draw_polar_axes(self, backend, area, font_size)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
backendclass(backend_object)inoutOutput device.
areareal(kind=R8P)inPlot area: left, right, top, bottom [px].
font_sizereal(kind=R8P)inFont size [px].

Call graph

draw_key ​

Draw the key at its place (key_place), or with its top left corner at origin (a 3D view's, gnuplot's do_3dkey_layout): right-aligned titles, style samples on their right; entries in a column, or row after row (key_horizontal). sample3d (a 3D or map view's): gnuplot's graph3d entries (do_3dkey_layout) about the anchor xl of each, from the first's (sample3d(3) [px]) a column width (sample3d(4)) apart: the sample from xl sample3d(2) long (before it with reverse), the text a key character (sample3d(1)) before (after) it, or sample3d(5) from xl left-justified (Left); without a first anchor (sample3d(3) -huge) the anchor from the text as foresight places it. The samples about the row centre 0.325 of the font size above the text's baseline, the fill samples half an entry (1.5 font sizes) high. Box line. Box color.

Box color.

Style of a row. Row counter.

fortran
subroutine draw_key(self, backend, area, box, font_size, grid, extent, origin, sample3d)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
backendclass(backend_object)inoutOutput device.
areareal(kind=R8P)inPlot area: left, right, top, bottom [px].
boxreal(kind=R8P)inPanel box: left, top, right, bottom [px].
font_sizereal(kind=R8P)inFont size [px].
gridinteger(kind=I4P)inEntries, columns, rows (key_layout).
extentreal(kind=R8P)inKey width and height [px] (key_layout).
originreal(kind=R8P)inoptionalKey top left corner [px], instead of its place.
sample3dreal(kind=R8P)inoptional3D entries: key character, sample length, first anchor, column width, text extent [px].

Call graph

key_sample_marks ​

The key sample of series from xs(1) to xs(2) about the row centre yc [px]: its fill (half high above and below the centre, 0.35 of the font size by default), line, error bars and point, as the series is drawn.

fortran
subroutine key_sample_marks(series, backend, xs, yc, font_size, half)

Arguments

NameTypeIntentAttributesDescription
seriestype(series_object)inSeries.
backendclass(backend_object)inoutOutput device.
xsreal(kind=R8P)inSample abscissae [px].
ycreal(kind=R8P)inRow centre [px].
font_sizereal(kind=R8P)inFont size [px].
halfreal(kind=R8P)inoptionalHalf height of a fill sample [px].

Call graph

draw_titles_at ​

The titles placed by gnuplot's title ... at: at beginning right-justified before the first placeable point, at end left-justified after the last one (key or not), at X,Y a key entry (title right-justified at the screen position, its sample after it) while the key is shown; left or right after beginning or end justify it. Polar plots too (their series projected on the page).

fortran
subroutine draw_titles_at(self, backend, area, font_size)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
backendclass(backend_object)inoutOutput device.
areareal(kind=R8P)inPlot area: left, right, top, bottom [px].
font_sizereal(kind=R8P)inFont size [px].

Call graph

draw_readouts ​

Draw the block of readouts in area, as the key is placed inside the plot area: a column (or a row) of readouts, over an opaque window unless fill, where the readouts are alone in the panel and the digits grow until the block fills area (vector devices; text has one size), unless a digit size is set.

fortran
subroutine draw_readouts(self, backend, area, font_size, fill)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
backendclass(backend_object)inoutOutput device.
areareal(kind=R8P)inBox: left, right, top, bottom [px].
font_sizereal(kind=R8P)inFont size [px].
filllogicalinReadouts alone, filling the box.

Call graph

key_layout ​

Key grid and size: entries (titled series), columns (1, or as many as room holds when horizontal) and rows; each entry is the widest title, a gap and the sample, with a gap between entries.

Attributes: pure

fortran
subroutine key_layout(self, backend, font_size, room, grid, extent, tall)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
backendclass(backend_object)inOutput device, for text widths.
font_sizereal(kind=R8P)inFont size [px].
roomreal(kind=R8P)inWidth available to a row of entries [px].
gridinteger(kind=I4P)outEntries, columns, rows.
extentreal(kind=R8P)outKey width and height [px].
tallreal(kind=R8P)inoptionalHeight available to a vertical key [px] (gnuplot_key).

Call graph

resample ​

The samples (x, y) of the function series s, and what its style derives from them: the box and step edges and the y = 0 base of boxes, impulses and histeps (sized by the samples, not by the empty series of the plot).

fortran
subroutine resample(self, s, x, y)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inoutPanel.
sinteger(kind=I4P)inSeries.
xreal(kind=R8P)inAbscissae.
yreal(kind=R8P)inOrdinates.

Call graph

drop_last ​

Forget the last series (gnuplot's unbounded iteration ends on an empty item, not drawn).

fortran
subroutine drop_last(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inoutPanel.

Call graph

draw_series ​

Draw the s-th series in the plot area against its axes xaxis and yaxis; unplaceable points (NaN, non-positive on log axes) break the line. Interval. First marked point.

Point color.

fortran
subroutine draw_series(self, backend, s, xaxis, yaxis, area, font_size)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
backendclass(backend_object)inoutOutput device.
sinteger(kind=I4P)inSeries index.
xaxistype(axis_object)inHorizontal axis of the series.
yaxistype(axis_object)inVertical axis of the series.
areareal(kind=R8P)inPlot area: left, right, top, bottom [px].
font_sizereal(kind=R8P)inFont size [px], for the label offsets.

Call graph

outline ​

Outline of a circle (radius r, from a1 to a2 covering 360 degrees and no hole), a wedge (from the centre along the arc from a1 to a2 [deg, counterclockwise]) or, with a hole of radius r_in, a ring sector: the vertices relative to the centre [same unit as r, y upward]; arcs sampled every 360/64 degrees at most.

Attributes: pure

fortran
subroutine outline(r, r_in, a1, a2, px, py)

Arguments

NameTypeIntentAttributesDescription
rreal(kind=R8P)inRadius.
r_inreal(kind=R8P)inHole radius, 0 for none.
a1real(kind=R8P)inStart angle [deg].
a2real(kind=R8P)inEnd angle [deg]; below a1: one more turn, as gnuplot.
pxreal(kind=R8P)outallocatableVertex abscissae.
pyreal(kind=R8P)outallocatableVertex ordinates.

Call graph

image_range ​

Range of the finite values (the positive ones with positive, for a log color axis) of the images among the series all, and of the lc palette z values. A module procedure on the series array, as layout_histograms: gfortran 16 debug builds misread self%series(s)%grid through the class dummy.

Attributes: pure

fortran
subroutine image_range(all, zmin, zmax, found, positive)

Arguments

NameTypeIntentAttributesDescription
alltype(series_object)inSeries of the panel.
zminreal(kind=R8P)outSmallest value.
zmaxreal(kind=R8P)outLargest value.
foundlogicaloutAny finite value.
positivelogicalinPositive values only.

layout_histograms ​

Bars of every histogram series of all from their values, group by group (gnuplot newhistogram): the first group from its rows (or at), each next one 2 rows after the last of the previous one (or at), as gnuplot. Within a group: clustered (and errorbars) side by side in each row, 1/(k + gap) wide for k series; stacked by row (positive values up from 0, negative ones down, each sign on its own stack); or one stack per series (columnstacked), its rows stacked, each row in its linetype color. A module procedure on the series array, not a binding: gfortran 16 corrupts the descriptor of self%series reached through the class dummy after its reallocation by add_series.

fortran
subroutine layout_histograms(all, mode, gap, boxwidth, linecolors)

Arguments

NameTypeIntentAttributesDescription
alltype(series_object)inoutSeries of the panel.
modeinteger(kind=I4P)inHIST_CLUSTERED, HIST_ROWSTACKED, ...
gapreal(kind=R8P)inGap between clusters [bar slots].
boxwidthreal(kind=R8P)inBar width factor, 0 for 1.
linecolorscharacter(len=9)inoptionalLinetype colors (set colorsequence).

Call graph

draw_pie ​

A pie panel in the box (left, right, top, bottom) [px]: the slices of the values, from 12 o'clock clockwise in the linetype colors, a hole of the donut fraction of the radius; the key at the right, an entry per slice with its label and percentage.

fortran
subroutine draw_pie(self, backend, box, font_size)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
backendclass(backend_object)inoutOutput device.
boxreal(kind=R8P)inBox: left, right, top, bottom [px].
font_sizereal(kind=R8P)inFont size [px].

Call graph

draw_gauges ​

Gauges side by side in the box (left, right, top, bottom) [px], one per series: a track of 270 degrees from 7:30 clockwise to 4:30, faint, lit from its start to the last finite value over the gauge scale (in segments cells if set, a cell lit when covered at least half); the scale ticks outside, the value in seven-segment digits under the centre, titled by the series.

fortran
subroutine draw_gauges(self, backend, box, font_size)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
backendclass(backend_object)inoutOutput device.
boxreal(kind=R8P)inBox: left, right, top, bottom [px].
font_sizereal(kind=R8P)inFont size [px].

Call graph

draw_radar ​

A radar (spider) chart in the box (left, right, top, bottom) [px]: a spoke per row, from 12 o'clock clockwise, named by the xtic labels of the first series having them; rings at the ticks of the common radial scale (from 0, or the smallest value if negative, extended to a tick); a polygon per series; the key at the right.

fortran
subroutine draw_radar(self, backend, box, font_size)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
backendclass(backend_object)inoutOutput device.
boxreal(kind=R8P)inBox: left, right, top, bottom [px].
font_sizereal(kind=R8P)inFont size [px].

Call graph

draw_rose ​

A rose (Nightingale) chart in the box (left, right, top, bottom) [px]: equal sectors from 12 o'clock clockwise, one per row in the linetype colors, the sector area proportional to the value (its radius with linear); rings at the ticks of the value scale; the key at the right, the sector names.

fortran
subroutine draw_rose(self, backend, box, font_size)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
backendclass(backend_object)inoutOutput device.
boxreal(kind=R8P)inBox: left, right, top, bottom [px].
font_sizereal(kind=R8P)inFont size [px].

Call graph

chart_key ​

A chart key at the top right: an entry per label, a filled sample in its color on the right of its text.

fortran
subroutine chart_key(backend, right, top, labels, colors, density, font_size)

Arguments

NameTypeIntentAttributesDescription
backendclass(backend_object)inoutOutput device.
rightreal(kind=R8P)inKey right side [px].
topreal(kind=R8P)inKey top [px].
labelscharacter(len=*)inEntries.
colorscharacter(len=*)inSample colors.
densityreal(kind=R8P)inSample opacity.
font_sizereal(kind=R8P)inFont size [px].

Call graph

polar_extent ​

Largest |r| of the points of the series all (theta:r) drawn on a polar panel, readouts aside.

Attributes: pure

fortran
subroutine polar_extent(all, rmax, found)

Arguments

NameTypeIntentAttributesDescription
alltype(series_object)inSeries, theta:r.
rmaxreal(kind=R8P)outLargest |r|.
foundlogicaloutAny point.

polar_bands ​

The filled curves with a base (filledcurves [above|below] r=V, the base in ylow) of the series all (theta:r) made closed polygons of theta:r, apart at undefined points: each piece of the band between the curve and the circle r = V (only where the curve is above it, or below, with above, below), the curve forward and the circle back, the crossings interpolated in theta, as gnuplot's polar filledcurves.

fortran
subroutine polar_bands(all)

Arguments

NameTypeIntentAttributesDescription
alltype(series_object)inoutSeries, theta:r.

Call graph

polar_positive_min ​

Smallest positive r of the points of the series all (theta:r), readouts aside; 0 if none.

Attributes: pure

fortran
subroutine polar_positive_min(all, rmin)

Arguments

NameTypeIntentAttributesDescription
alltype(series_object)inSeries, theta:r.
rminreal(kind=R8P)outSmallest positive r.

polar_window ​

Make undefined the points of the series all (theta:r) whose theta lies outside the fixed ends of the theta range (gnuplot set trange, which excludes them from polar data plots); an autoscaled end excludes nothing. Readouts kept. A module procedure on the series array, as polar_project.

Attributes: pure

fortran
subroutine polar_window(all, fixed, ends)

Arguments

NameTypeIntentAttributesDescription
alltype(series_object)inoutSeries, theta:r.
fixedlogicalinStart, end of the theta range set.
endsreal(kind=R8P)inStart, end of the theta range.

polar_project ​

Project the series all from theta:r to x:y about the pole at r = rmin, as gnuplot: x = (r - rmin) cos(phi), y = (r - rmin) sin(phi), phi the page angle of theta (logr: log10(r / rmin) for r - rmin); with cut (a fixed rmin) a point with r below rmin is undefined, else it lies across the pole. Readouts kept. A point beyond the end of the r range (farther than rim from the pole) is undefined, as gnuplot clips it; on lines one next to a point within moves to where their segment crosses the rim (gnuplot's clipped segment, the curve's end). (A module procedure, not a binding: gfortran 16 debug builds misread the components of self%series reached through the class dummy after their reallocation.)

Attributes: pure

fortran
subroutine polar_project(all, rmin, cut, degrees, origin, clockwise, logr, reversed, rim)

Arguments

NameTypeIntentAttributesDescription
alltype(series_object)inoutSeries: theta:r in, x:y out.
rminreal(kind=R8P)inr at the pole.
cutlogicalinPoints below rmin undefined.
degreeslogicalinTheta in degrees, else radians.
originreal(kind=R8P)inPage angle of theta = 0 [deg].
clockwiselogicalinTheta grows clockwise.
logrlogicalinLog r axis.
reversedlogicalinA reversed r axis: r = rmin at the pole, smaller r outwards; a larger r undefined.
rimreal(kind=R8P)inDistance of the r range end from the pole [r units].

Call graph

boxplot_words ​

Update the boxplot style with gnuplot set style boxplot words: range R, fraction F, [no]outliers, pointtype|pt P, candlesticks, financebars, medianlinewidth W, separation S, labels off|auto|x, sorted, unsorted. bad names the first problem, empty if none (the style is then unchanged).

Attributes: pure

fortran
subroutine boxplot_words(words, style, bad)

Arguments

NameTypeIntentAttributesDescription
wordscharacter(len=*)inWords.
styletype(boxplot_style)inoutBoxplot style.
badcharacter(len=:)outallocatableProblem, empty if none.

Call graph

curve_words ​

Filled curve options of series from gnuplot words: closed, x1 (to the bottom), x2 (to the top), xy=X,Y (to a point), y1 or y (to the left border), y2 (to the right one), x1=V, x2=V, x=V (to the vertical line x = V, as gnuplot 6.0 draws them), above, below (where the curve is above or below its line or second curve). bad names the first problem.

Attributes: pure

fortran
subroutine curve_words(words, series, bad)

Arguments

NameTypeIntentAttributesDescription
wordscharacter(len=*)inWords.
seriestype(series_object)inoutFilled curve series.
badcharacter(len=:)outallocatableProblem, empty if none.

Call graph

spider_words ​

The spider plot style from gnuplot set style spiderplot words: fill style words (after an optional fs or fillstyle), lw|linewidth W, pt|pointtype N, ps|pointsize S. bad names the first problem.

fortran
subroutine spider_words(words, style, bad)

Arguments

NameTypeIntentAttributesDescription
wordscharacter(len=*)inWords.
styletype(style_object)inoutSpider plot style.
badcharacter(len=:)outallocatableProblem, empty if none.

Call graph

head_words ​

Arrowheads from gnuplot words: head (at the end), heads (both), nohead, backhead (at the start); filled, empty or nofilled (open). bad names an unknown word, empty if none.

Attributes: pure

fortran
subroutine head_words(words, head, filled, bad)

Arguments

NameTypeIntentAttributesDescription
wordscharacter(len=*)inWords.
headinteger(kind=I4P)inoutHeads: 0 none, 1 end, 2 start, 3 both.
filledlogicalinoutFilled heads.
badcharacter(len=:)outallocatableUnknown word, empty if none.

Call graph

label_words ​

Label options of series from gnuplot with labels words: left, center, right, rotate by A, norotate, offset X,Y [characters], point / nopoint, tc|textcolor [rgb] "color". bad names the first problem.

Attributes: pure

fortran
subroutine label_words(words, series, bad)

Arguments

NameTypeIntentAttributesDescription
wordscharacter(len=*)inWords.
seriestype(series_object)inoutLabels series.
badcharacter(len=:)outallocatableProblem, empty if none.

Call graph

scan_word ​

Next blank separated word of text from pos, advanced past it; a quoted word may hold blanks. Empty at the end.

Attributes: pure

fortran
subroutine scan_word(text, pos, word)

Arguments

NameTypeIntentAttributesDescription
textcharacter(len=*)inText.
posinteger(kind=I4P)inoutScan position.
wordcharacter(len=:)outallocatableWord.

Call graph

draw_parallel ​

A parallel axis plot in the box (left, right, top, bottom) [px], as gnuplot: a vertical axis per series at its number (or at), the x range one unit beyond the first and last, each axis scaled on its own (set paxis) and titled below by its series; a line per row across the axes, in the first series' style; the frame around.

fortran
subroutine draw_parallel(self, backend, box, font_size)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
backendclass(backend_object)inoutOutput device.
boxreal(kind=R8P)inBox: left, right, top, bottom [px].
font_sizereal(kind=R8P)inFont size [px].

Call graph

draw_spider ​

A spider plot in the box (left, right, top, bottom) [px], as gnuplot: a radial axis per series, the first up, the others clockwise, each scaled on its own (set paxis, the smallest value at the centre by default) and labelled outside by its series title, else by set paxis N label; the web (set grid spiderplot) at the ticks of axis 1; a polygon per row in its linetype color and the spider plot style, named in the key by the key(N) column. Names. Colors.

Polygon color. Fill color, none for none. Border color, none for none. Border width [px].

fortran
subroutine draw_spider(self, backend, box, font_size)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
backendclass(backend_object)inoutOutput device.
boxreal(kind=R8P)inBox: left, right, top, bottom [px].
font_sizereal(kind=R8P)inFont size [px].

Call graph

paint_series ​

The colors of the series of all colored by the palette p (gnuplot lc palette): per point over the color axis cbaxis (z; the key line sample takes the first point's color, the point sample the last's), one color axis value (cb) or one fraction (frac). A value not placeable on a log color axis takes its low end, as the images. A module procedure on the series array, as image_range.

Attributes: pure

fortran
subroutine paint_series(all, p, cbaxis, maps)

Arguments

NameTypeIntentAttributesDescription
alltype(series_object)inoutSeries of the panel.
ptype(palette_object)inEffective palette.
cbaxistype(axis_object)inColor axis.
mapstype(colormap_object)inoptionalNamed colormaps (a series' colormap).

Call graph

note_palette_colors ​

The colors of the labels in palette colors, gnuplot's: of their height z over the color axis (tc palette z), of a color axis value (cb V) or of a fraction (frac F) of the palette p.

Attributes: pure

fortran
subroutine note_palette_colors(notes, z, p, cbaxis)

Arguments

NameTypeIntentAttributesDescription
notestype(label_object)inoutLabels.
zreal(kind=R8P)inTheir heights (z of their positions).
ptype(palette_object)inEffective palette.
cbaxistype(axis_object)inColor axis.

Call graph

draw_colorbox ​

The color box: the palette gradient over the color axis, its frame (border), ticks, labels and label. Vertical, low values at the bottom (at the top with invert), at the right of the plot by default; horizontal, low values at the left, below the x labels by default; or in the user box (canvas fractions from the bottom left). A map view's (geo), as gnuplot's: from 1.025 to 1.075 of the plot width and a character width right, the plot height, its ticks on both sides inward, the labels a character width right. Label anchor abscissa [px]. Label anchor ordinate [px]. Label color.

fortran
subroutine draw_colorbox(self, backend, area, panel, font_size, geo, box3d)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
backendclass(backend_object)inoutOutput device.
areareal(kind=R8P)inPlot area: left, right, top, bottom [px].
panelreal(kind=R8P)inPanel box: left, top, right, bottom [px].
font_sizereal(kind=R8P)inFont size [px].
geotype(map_geometry)inoptionalGeometry of a map view (of a 3D view with box3d).
box3dreal(kind=R8P)inoptionalA 3D view's default box: left, top, width, height [px].

Call graph

setup_axes ​

Effective ranges and ticks for the plot area: x from every series, each y axis from its own series and the points inside the x range, as gnuplot. The second y axis is active when it has data or both its ends are fixed; the second x axis also when its ticks are set, then on the range of the first one without data of its own (gnuplot).

A polar panel sets up its r axis from the series as given (raw, theta:r), projects them into its series, and autoscales x and y to the disc of the largest radius, as gnuplot.

fortran
subroutine setup_axes(self, area, raw)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inoutPanel.
areareal(kind=R8P)inPlot area: left, right, top, bottom [px].
rawtype(series_object)inoptionalSeries of a polar panel, theta:r.

Call graph

linked_axis ​

The secondary axis second linked to first (gnuplot set link): the same range; with maps (maps(k) forward, k + 1 inverse) its automatic ticks are those of the primary range, labelled by their mapped values (as gnuplot 6.0), its other ticks (a step, a list) made over the forward range in its own units and placed at their inverse, the labels its values. A module procedure: as an internal one of setup_axes, given a component of its host's panel, nvfortran 26.9 stopped with an internal compiler error.

fortran
subroutine linked_axis(second, first, maps, k, npx)

Arguments

NameTypeIntentAttributesDescription
secondtype(axis_object)inoutSecondary axis.
firsttype(axis_object)inPrimary axis.
mapstype(expression_object)inoptionalMaps (via), absent for the same axis.
kinteger(kind=I4P)inForward map index.
npxreal(kind=R8P)inAxis length [px].

Call graph

nonlinear_axis ​

axis made nonlinear (gnuplot set nonlinear): placed linearly in the values of maps(k) (f, the hidden axis), maps(k + 1) (g) its inverse. The hidden axis takes the mapped data and ends and its own automatic range; the axis ends are g of its ends. Automatic ticks sit at the hidden axis' automatic ticks, labelled by g of them (as gnuplot 6.0: via sqrt(x) over [0:100] reads 0, 4, 16, ...), other ticks (a step, a list) are in the axis' own values. The map is a table (map_* of axis_object): g sampled uniformly over the hidden range, the edges of an undefined part (a broken axis) found by bisection, the ticks exact. One local axis_object (nvfortran 26.9).

fortran
subroutine nonlinear_axis(axis, maps, k, npx, dmin, dmax, found)

Arguments

NameTypeIntentAttributesDescription
axistype(axis_object)inoutAxis.
mapstype(expression_object)inMaps: f at k, g at k + 1.
kinteger(kind=I4P)inForward map index.
npxreal(kind=R8P)inAxis length [px].
dminreal(kind=R8P)inSmallest data value.
dmaxreal(kind=R8P)inLargest data value.
foundlogicalinAny data.

Call graph

data_label_lines ​

A data label (with labels) on several lines ("a\nb"): the first at the point, the next ones below it, as gnuplot; rotated, one line.

fortran
subroutine data_label_lines(backend, x, y, text, anchor, angle, color, dx, dy, font_size)

Arguments

NameTypeIntentAttributesDescription
backendclass(backend_object)inoutOutput device.
xreal(kind=R8P)inAnchor abscissa [unit].
yreal(kind=R8P)inAnchor ordinate [unit].
textcharacter(len=*)inText.
anchorcharacter(len=*)inHorizontal anchor.
anglereal(kind=R8P)inRotation [deg].
colorcharacter(len=*)inColor.
dxreal(kind=R8P)inHorizontal offset [px].
dyreal(kind=R8P)inVertical offset [px, down].
font_sizereal(kind=R8P)inFont size [px].

Call graph

plain_ticks ​

On an enhanced text device, the tick labels of the noenhanced axes escaped, read as they are (their widths measured as drawn).

fortran
subroutine plain_ticks(self)

Arguments

NameTypeIntentAttributesDescription
selftype(axes_object)inoutPanel.

Call graph

one_line ​

Tick labels on several lines (new lines in them) joined on one line, a blank between the lines.

Attributes: pure

fortran
subroutine one_line(ticks)

Arguments

NameTypeIntentAttributesDescription
tickstype(tick_object)inoutTicks.

Call graph

text_rows ​

A text on several lines (new lines in text), the first baseline at y, the next step lower, each anchored at x by anchor; in color unless blank.

fortran
subroutine text_rows(backend, x, y, text, anchor, step, color)

Arguments

NameTypeIntentAttributesDescription
backendclass(backend_object)inoutOutput device.
xreal(kind=R8P)inAnchor abscissa [px].
yreal(kind=R8P)inFirst baseline [px].
textcharacter(len=*)inText.
anchorcharacter(len=*)instart, middle or end.
stepreal(kind=R8P)inLine spacing [px].
colorcharacter(len=*)inText color, the frame's if blank.

Call graph

lines_text ​

A centred text on several lines (new lines in label), the first baseline at y, the next step lower; the superscript sup ends the last line; in color unless blank.

fortran
subroutine lines_text(backend, x, y, label, sup, step, color)

Arguments

NameTypeIntentAttributesDescription
backendclass(backend_object)inoutOutput device.
xreal(kind=R8P)inCentre abscissa [px].
yreal(kind=R8P)inFirst baseline [px].
labelcharacter(len=*)inText.
supcharacter(len=*)inSuperscript.
stepreal(kind=R8P)inLine spacing [px].
colorcharacter(len=*)inText color, the frame's if blank.

Call graph

tick_label ​

A tick label at (x, y) [px], moved by the offset of its axis tics and in their color (the frame's if blank), turned by rotate [deg, clockwise] unless 0.

fortran
subroutine tick_label(backend, tics, font_size, x, y, label, anchor, sup, rotate)

Arguments

NameTypeIntentAttributesDescription
backendclass(backend_object)inoutOutput device.
ticstype(tics_object)inAxis tick settings.
font_sizereal(kind=R8P)inFont size [px].
xreal(kind=R8P)inAnchor abscissa [px].
yreal(kind=R8P)inAnchor ordinate (baseline) [px].
labelcharacter(len=*)inText.
anchorcharacter(len=*)inHorizontal anchor.
supcharacter(len=*)inSuperscript.
rotatereal(kind=R8P)inRotation [deg, clockwise], 0 for none.

Call graph

tex_tick ​

A number of the default format in LaTeX math, as gnuplot's latex terminals (""; a power of ten's exponent as \times10^{n} raised); other labels as they are.

Attributes: pure

fortran
subroutine tex_tick(tics, text, raised)

Arguments

NameTypeIntentAttributesDescription
ticstype(tics_object)inAxis tick settings.
textcharacter(len=:)inoutallocatableLabel.
raisedcharacter(len=:)inoutallocatableSuperscript.

Call graph

draw_stamp ​

gnuplot set timestamp: the date and time now (or SOURCE_DATE_EPOCH's) in the format, at the bottom left of the panel box (top: its top left), or reading upward along its left side (rotate), moved by the offset.

fortran
subroutine draw_stamp(self, backend, x0, y0, height, font_size)

Arguments

NameTypeIntentAttributesDescription
selftype(axes_object)inPanel.
backendclass(backend_object)inoutOutput device.
x0real(kind=R8P)inBox left [px].
y0real(kind=R8P)inBox top [px].
heightreal(kind=R8P)inBox height [px].
font_sizereal(kind=R8P)inFont size [px].

Call graph

view3d_label_offset ​

A label's offset in axis or graph units (first, graph) in a 3D view, gnuplot's map3d_position_r: the projected distance from their origin (graph 0: the axis minima, first 0: the value 0, z in the system of y) moved into its position (screen fractions, view3d_place's), truncated to gnuplot's svg units (1/100 px). gnuplot refuses those systems mixed with screen or character ones: their part is dropped. Screen units rounded into the position too; character ones stay with the label.

Attributes: pure

fortran
subroutine view3d_label_offset(f, label, canvas, xaxis, yaxis, zaxis)

Arguments

NameTypeIntentAttributesDescription
ftype(view3d_frame)inThe view.
labeltype(label_object)inoutLabel, its position projected already.
canvasreal(kind=R8P)inPage width and height [px].
xaxistype(axis_object)inx axis.
yaxistype(axis_object)iny axis.
zaxistype(axis_object)inz axis.

Call graph

view3d_shape ​

An object of a 3D view on the page: its points projected (view3d_place), a circle's radius in x units scaled as gnuplot's (its radius_scaler: the x axis length on the page at the view scale); in screen fractions.

Attributes: pure

fortran
subroutine view3d_shape(f, shape, canvas, xaxis, yaxis, zaxis, scale)

Arguments

NameTypeIntentAttributesDescription
ftype(view3d_frame)inThe view.
shapetype(shape_object)inoutObject.
canvasreal(kind=R8P)inPage width and height [px].
xaxistype(axis_object)inx axis.
yaxistype(axis_object)iny axis.
zaxistype(axis_object)inz axis.
scalereal(kind=R8P)inView scale.

Call graph

hidden_quads ​

The quadrangles of the grid surfaces of a 3D view with set hidden3d (lines and linespoints of a grid: the first grid_scans scans, of one length), each to be filled with the page color and stroked, painted from the farthest (depth the mean view z of its corners, the nearest largest): gnuplot's hidden3d by a painter's algorithm. A quadrangle facing away (clockwise on the page, the scans in gnuplot's order, data ones last first) takes the surface's underside color (back_color, the linetype after its own). A quadrangle with a corner undefined or outside the box is dropped. The projected lines of those surfaces are emptied in series (their key kept).

fortran
subroutine hidden_quads(raw, f, series, qx, qy, depth, color, lw)

Arguments

NameTypeIntentAttributesDescription
rawtype(series_object)inSeries as given.
ftype(view3d_frame)inThe view.
seriestype(series_object)inoutProjected series.
qxreal(kind=R8P)outallocatablePage abscissae (4, quadrangle) [px].
qyreal(kind=R8P)outallocatablePage ordinates.
depthreal(kind=R8P)outallocatableDepths.
colorcharacter(len=24)outallocatableLine colors.
lwreal(kind=R8P)outallocatableLine widths [px].

Call graph

key3d_metrics ​

gnuplot's 3D key metrics (boundary3d, do_3dkey_layout) in its svg terminal units: km = the key character width, an entry's height (the character height), the sample width (4 characters and a tick), a column's width (the longest title and 4 characters, the sample), the key title's height, the key's width.

Attributes: pure

fortran
subroutine key3d_metrics(self, font_size, grid, km)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
font_sizereal(kind=R8P)inFont size [px].
gridinteger(kind=I4P)inKey entries, columns, rows.
kmreal(kind=R8P)outMetrics [units].

Call graph

key3d_origin ​

gnuplot's do_3dkey_layout: the anchor of the first key entry (its sample's left, its row's top) [units] in the plot bounds (gnuplot's page bounds, the key fixed): below the plot (below), centred by its parts; inside at the top or bottom, a tick length in, at the left or right; outside at the right or left, a tick length away; at screen X,Y, the key's top at Y and its right edge at X (its centre or left edge with center, left).

Attributes: pure

fortran
subroutine key3d_origin(self, f, km, grid, xinkey, yinkey)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
ftype(view3d_frame)inThe view.
kmreal(kind=R8P)inKey metrics (key3d_metrics).
gridinteger(kind=I4P)inKey entries, columns, rows.
xinkeyreal(kind=R8P)outFirst entry anchor abscissa [units].
yinkeyreal(kind=R8P)outIts ordinate [units].

Call graph

view3d_zextent ​

The z extent of the 3D series (their finite heights, positive ones on a log axis), the autoscaling ones; a point outside the x or y range set does not count (gnuplot's store_and_update_range: "don't set y range if x is outrange").

Attributes: pure

fortran
subroutine view3d_zextent(series, logarithmic, xaxis, yaxis, zr, found)

Arguments

NameTypeIntentAttributesDescription
seriestype(series_object)inSeries.
logarithmiclogicalinA log z axis.
xaxistype(axis_object)inx axis.
yaxistype(axis_object)iny axis.
zrreal(kind=R8P)outSmallest and largest height.
foundlogicaloutAny height.

Call graph

corner_heights ​

The highest and lowest surface points at the xy corners of the box (gnuplot's check_corner_height): the first and last points of the first and last grid scans of every surface, when they lie on a corner; the base plane else.

Attributes: pure

fortran
subroutine corner_heights(series, f, xaxis, yaxis, heights, depths)

Arguments

NameTypeIntentAttributesDescription
seriestype(series_object)inSeries as given.
ftype(view3d_frame)inThe view.
xaxistype(axis_object)inx axis.
yaxistype(axis_object)iny axis.
heightsreal(kind=R8P)outHighest point per corner (linear z).
depthsreal(kind=R8P)outLowest point per corner.

Call graph

view3d_project ​

The 3D series projected on the page by the view f (project_series).

fortran
subroutine view3d_project(series, f, surface)

Arguments

NameTypeIntentAttributesDescription
seriestype(series_object)inoutSeries.
ftype(view3d_frame)inThe view.
surfacelogicalinSurfaces drawn.

Call graph

project_series ​

A 3D series projected on the page by the view f (gnuplot's map3d_xy, truncated to its terminal units): its x and y become page coordinates [px] (y negated, for the page axes of render_view3d). Points, dots and labels keep their points (out of the box lo-hi: undefined); lines and linespoints are their scans, then the crossing curves of a data grid (gnuplot's iso-curves), each segment clipped to the box (a segment from inside to outside ends on the box, one outside altogether is dropped); impulses are segments from z = 0 (clipped to the z range) to the point. The per point arrays follow their points. surface false (unset surface) leaves the lines and points undrawn.

fortran
subroutine project_series(one, f, surface, lo, hi)

Arguments

NameTypeIntentAttributesDescription
onetype(series_object)inoutSeries.
ftype(view3d_frame)inThe view.
surfacelogicalinSurfaces drawn.
loreal(kind=R8P)inBox start (linear spaces).
hireal(kind=R8P)inBox end.

Call graph

axes_names ​

Axes named by gnuplot's concatenated axis names, e.g. x, y2, xy, xyy2, cb, x2: each found one sets its flag (the others are left unchanged); bad is the first unsupported rest (cb or x2 without their flag present), empty if none.

Attributes: pure

fortran
subroutine axes_names(names, x, y, y2, bad, cb, x2)

Arguments

NameTypeIntentAttributesDescription
namescharacter(len=*)inAxis names.
xlogicalinoutx named.
ylogicalinouty named.
y2logicalinouty2 named.
badcharacter(len=:)outallocatableUnsupported rest, empty if none.
cblogicalinoutoptionalcb (color axis) named.
x2logicalinoutoptionalx2 named.

Call graph

readout_position ​

Update the readout block position from the set key position words inside the plot area (see key_position): outside, below and above are not readout positions.

Attributes: pure

fortran
subroutine readout_position(words, horizontal, vertical, layout, bad)

Arguments

NameTypeIntentAttributesDescription
wordscharacter(len=*)inBlank separated words.
horizontalcharacter(len=6)inoutHorizontal position.
verticalcharacter(len=6)inoutVertical position.
layoutlogicalinoutReadouts side by side.
badcharacter(len=:)outallocatableFirst word not a position, empty if none.

Call graph

key_position ​

Update the key position from gnuplot set key position words, applied in order: left, right, top, bottom, and center, which centres the direction not given yet by words (both if none, as gnuplot); inside, outside; below (under) and above (over), centred rows below or above the plot; the margins lmargin, rmargin (outside, left or right, keeping the vertical position), tmargin, bmargin (above or below the plot, keeping the horizontal position and the layout), as gnuplot; horizontal, vertical the layout of the entries.

Attributes: pure

fortran
subroutine key_position(words, horizontal, vertical, outside, margin, layout, bad)

Arguments

NameTypeIntentAttributesDescription
wordscharacter(len=*)inBlank separated words.
horizontalcharacter(len=6)inoutHorizontal position.
verticalcharacter(len=6)inoutVertical position.
outsidelogicalinoutOutside the plot area.
margincharacter(len=6)inouttop, bottom or empty.
layoutlogicalinoutEntries side by side.
badcharacter(len=:)outallocatableFirst word not a position, empty if none.

Call graph

push_axes ​

Append item to list (an unallocated list is empty), through a temporary: see push.

Attributes: pure

fortran
subroutine push_axes(list, item)

Arguments

NameTypeIntentAttributesDescription
listtype(axes_object)inoutallocatableList.
itemtype(axes_object)inNew item.

histep_edges_of ​

Edges of the steps of histeps through x: halfway to the neighbours, the end steps symmetric (gnuplot), in data space.

Attributes: pure

fortran
subroutine histep_edges_of(x, left, right)

Arguments

NameTypeIntentAttributesDescription
xreal(kind=R8P)inAbscissae.
leftreal(kind=R8P)outallocatableLeft edges.
rightreal(kind=R8P)outallocatableRight edges.

Call graph

box_edges_of ​

Edges of the boxes at x: halfway to the neighbours (gnuplot's auto width, the end boxes symmetric), scaled by a relative boxwidth; or boxwidth itself (positive, not relative).

Attributes: pure

fortran
subroutine box_edges_of(x, boxwidth, relative, left, right)

Arguments

NameTypeIntentAttributesDescription
xreal(kind=R8P)inAbscissae.
boxwidthreal(kind=R8P)inset boxwidth, not positive if unset.
relativelogicalinboxwidth relative to the auto width.
leftreal(kind=R8P)outallocatableLeft edges.
rightreal(kind=R8P)outallocatableRight edges.

Call graph

Functions ​

tick_length ​

Length of a major or minor tick of an axis [px]: the major length times the axis' scale (gnuplot set tics scale).

Attributes: pure

Returns: real(kind=R8P)

fortran
function tick_length(tics, major) result(length)

Arguments

NameTypeIntentAttributesDescription
ticstype(tics_object)inAxis tick settings.
majorlogicalinA major tick.

Call graph

out_shift ​

Room outward ticks take beyond the border [px], 0 for inward ones.

Attributes: pure

Returns: real(kind=R8P)

fortran
function out_shift(tics) result(shift)

Arguments

NameTypeIntentAttributesDescription
ticstype(tics_object)inAxis tick settings.

Call graph

rotated_span ​

Leftmost and rightmost page abscissae [px] from its baseline anchor of a label width [px] wide rotated by angle [deg, counterclockwise] with anchor, its glyphs from 0.25 font sizes below the baseline to 0.75 above.

Attributes: pure

Returns: real(kind=R8P)

fortran
function rotated_span(width, angle, anchor, font_size) result(span)

Arguments

NameTypeIntentAttributesDescription
widthreal(kind=R8P)inLabel width [px].
anglereal(kind=R8P)inAngle [deg].
anchorcharacter(len=*)instart, middle or end.
font_sizereal(kind=R8P)inFont size [px].

rotated_extent ​

Extent of an x tick label width [px] wide rotated by angle [deg] with anchor, from its tick at the base ordinate (see rotated_anchor): depth below the base, then reach left and right of the tick [px]; the glyphs from 0.25 font sizes below the baseline to 0.75 above.

Attributes: pure

Returns: real(kind=R8P)

fortran
function rotated_extent(width, angle, anchor, font_size) result(extent)

Arguments

NameTypeIntentAttributesDescription
widthreal(kind=R8P)inLabel width [px].
anglereal(kind=R8P)inLabel angle [deg].
anchorcharacter(len=*)instart, end or middle.
font_sizereal(kind=R8P)inFont size [px].

Call graph

rotated_rise ​

Lowest and highest page ordinates [px, downward] from its anchor of a tick label width [px] wide rotated by angle [deg, counterclockwise] with anchor (start, end, middle): the glyphs from 0.25 font sizes below the baseline to 0.75 above, as rotated_extent.

Attributes: pure

Returns: real(kind=R8P)

fortran
function rotated_rise(width, angle, anchor, font_size) result(rise)

Arguments

NameTypeIntentAttributesDescription
widthreal(kind=R8P)inLabel width [px].
anglereal(kind=R8P)inLabel angle [deg].
anchorcharacter(len=*)instart, end or middle.
font_sizereal(kind=R8P)inFont size [px].

Call graph

rotated_reach ​

Reach right of its tick [px] of an x2 tick label width [px] wide rotated by angle [deg] with anchor, drawn 0.35 font sizes times the sine of the angle right of the tick (see draw_frame).

Attributes: pure

Returns: real(kind=R8P)

fortran
function rotated_reach(width, angle, anchor, font_size) result(reach)

Arguments

NameTypeIntentAttributesDescription
widthreal(kind=R8P)inLabel width [px].
anglereal(kind=R8P)inLabel angle [deg].
anchorcharacter(len=*)instart, end or middle.
font_sizereal(kind=R8P)inFont size [px].

Call graph

x2labels_rise ​

Height [px] of the rotated x2 tick labels, the largest over the major ticks (see rotated_rise); 0 if they are not rotated, or the device writes text horizontally.

Attributes: pure

Returns: real(kind=R8P)

fortran
function x2labels_rise(self, backend, font_size) result(height)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
backendclass(backend_object)inOutput device, for text widths.
font_sizereal(kind=R8P)inFont size [px].

Call graph

x2_room ​

Room above the top border of the second x axis [px]: its outward ticks, its tick labels row and its label.

Attributes: pure

Returns: real(kind=R8P)

fortran
function x2_room(self, font_size) result(room)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
font_sizereal(kind=R8P)inFont size [px].

Call graph

stacked_column ​

Whether series s is a column stack (columnstacked histograms): its rows, not its title, make the key.

Attributes: pure

Returns: logical

fortran
function stacked_column(self, s) result(yes)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
sinteger(kind=I4P)inSeries index.

Call graph

stack_names ​

The last column stack with row names (gnuplot key(N)), 0 if none: its rows make the key.

Attributes: pure

Returns: integer(kind=I4P)

fortran
function stack_names(self) result(s)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.

Call graph

group_rows ​

1 if a histogram group has a title (gnuplot newhistogram "title"), a line below the x tick labels; else 0.

Attributes: pure

Returns: integer(kind=I4P)

fortran
function group_rows(self) result(rows)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.

Call graph

xlabels_extent ​

Depth below the base, reach left and right of the tick [px] of the rotated x tick labels, the largest over the major ticks (see rotated_extent); zero without labels.

Attributes: pure

Returns: real(kind=R8P)

fortran
function xlabels_extent(self, backend, font_size) result(extent)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
backendclass(backend_object)inOutput device, for text widths.
font_sizereal(kind=R8P)inFont size [px].

Call graph

series_palette ​

The palette of the series s: its named colormap (fc palette NAME, lc palette NAME), else p; a colormap read reversed while the current palette is negative (gnuplot's cb2gray flips the gray before the lookup).

Returns: type(palette_object)

fortran
function series_palette(self, s, p) result(pal)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
sinteger(kind=I4P)inSeries.
ptype(palette_object)inPanel palette.

Call graph

has_depth_objects ​

Whether the panel has depthorder polygons (set object N polygon depthorder).

Attributes: pure

Returns: logical

fortran
function has_depth_objects(self) result(yes)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.

Call graph

zerror_line_color ​

The color of the line of a zerrorfill item, gnuplot's (plot3d.c "ZERRORFILL is weird"): with a fill color (fc) its line color; else its fill's border color: black by default, the border's lc, the background without border (gnuplot's svg draws LT_NODRAW so).

Returns: character(len=:)

fortran
function zerror_line_color(one) result(color)

Arguments

NameTypeIntentAttributesDescription
onetype(series_object)inThe item.

Call graph

in_set_range ​

Whether v lies within the range set on axis (both ends fixed; else any value), gnuplot's INRANGE.

Attributes: pure

Returns: logical

fortran
function in_set_range(axis, v) result(inside)

Arguments

NameTypeIntentAttributesDescription
axistype(axis_object)inAxis.
vreal(kind=R8P)inValue.

Call graph

contour_label ​

A level's label in the set cntrlabel format (gnuplot's gprintf, "%8.3g" by default), its blanks kept.

Attributes: pure

Returns: character(len=:)

fortran
function contour_label(format, z) result(label)

Arguments

NameTypeIntentAttributesDescription
formatcharacter(len=*)inFormat.
zreal(kind=R8P)inLevel.

Call graph

map_geometry_of ​

The geometry of the panel's map view in the box of top-left corner (x0, y0) and size width x height [px] (foresight_view3d's map_layout): gnuplot's title lines (one, plus the backslashes of its text, as gnuplot counts them), the color box at the right, the x2 and y2 labels, the margins, set size ratio.

Returns: type(map_geometry)

fortran
function map_geometry_of(self, x0, y0, width, height, font_size) result(geo)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
x0real(kind=R8P)inBox left side [px].
y0real(kind=R8P)inBox top side [px].
widthreal(kind=R8P)inBox width [px].
heightreal(kind=R8P)inBox height [px].
font_sizereal(kind=R8P)inFont size [px].

Call graph

axis_markup ​

Whether a tick label of axis (drawn, from the data, of the explicit list, or its format) holds enhanced text markup, unless the labels are as they are (noenhanced).

Attributes: pure

Returns: logical

fortran
function axis_markup(axis) result(yes)

Arguments

NameTypeIntentAttributesDescription
axistype(axis_object)inAxis.

Call graph

place_words ​

The viewer tick settings text, after the placement of the ticks of axis: axis (on the zero axis of the other coordinate) and rangelimited LO HI (within the data range), if so.

Attributes: pure

Returns: character(len=:)

fortran
function place_words(axis, text) result(words)

Arguments

NameTypeIntentAttributesDescription
axistype(axis_object)inAxis.
textcharacter(len=*)inTick settings.

Call graph

style_words ​

The viewer tick settings text, after the label style of tics: offset X Y (characters) and color C, if set.

Attributes: pure

Returns: character(len=:)

fortran
function style_words(tics, text) result(words)

Arguments

NameTypeIntentAttributesDescription
ticstype(tics_object)inAxis tick settings.
textcharacter(len=*)inTick settings.

Call graph

family_word ​

A font family as one word of the viewer tick settings: blanks as %20, - for none.

Attributes: pure

Returns: character(len=:)

fortran
function family_word(family) result(word)

Arguments

NameTypeIntentAttributesDescription
familycharacter(len=*)inFamily.

Call graph

plain_word ​

The viewer tick settings tics, after noenhanced if the labels are plain (not read as enhanced text).

Attributes: pure

Returns: character(len=:)

fortran
function plain_word(plain, tics) result(words)

Arguments

NameTypeIntentAttributesDescription
plainlogicalinLabels as they are.
ticscharacter(len=*)inTick settings.

Call graph

grid_words ​

The grid lines as the viewer reads them (x y mx), empty for the default x and y.

Attributes: pure

Returns: character(len=:)

fortran
function grid_words(lines) result(words)

Arguments

NameTypeIntentAttributesDescription
lineslogicalinx, y, x2, y2, mx, my.

Call graph

grid_dash_array ​

Dash array of the grid lines: foresight's dots, or the dash type's (set grid dt N; 1 solid).

Attributes: pure

Returns: character(len=:)

fortran
function grid_dash_array(self) result(dashes)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.

Call graph

page_angle ​

Page angle of the theta theta [deg] (counterclockwise from the right) [rad], after set theta.

Attributes: elemental

Returns: real(kind=R8P)

fortran
function page_angle(self, theta) result(a)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
thetareal(kind=R8P)inTheta [deg].

Call graph

key_sample ​

Length of a key sample [px]: samplen character widths (and a major tick length with gnuplot_key, gnuplot's samplen * h_char + h_tic), else 3 font sizes.

Attributes: pure

Returns: real(kind=R8P)

fortran
function key_sample(self, font_size) result(length)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
font_sizereal(kind=R8P)inFont size [px].

Call graph

key_place ​

Where the key lies: inside the plot area, in the left or right margin, top (above the plot) or bottom (below it); outside and centred both ways it stays inside, as gnuplot.

Attributes: pure

Returns: character(len=6)

fortran
function key_place(self) result(place)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.

Call graph

last_drawable ​

Whether the last series has a point of finite coordinates.

Returns: logical

fortran
function last_drawable(self) result(yes)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.

Call graph

chart_key_width ​

Width of a chart key [px]: the widest entry, a gap, the sample.

Attributes: pure

Returns: real(kind=R8P)

fortran
function chart_key_width(backend, labels, font_size) result(width)

Arguments

NameTypeIntentAttributesDescription
backendclass(backend_object)inOutput device.
labelscharacter(len=*)inEntries.
font_sizereal(kind=R8P)inFont size [px].

Call graph

polar_rho ​

Distance from the pole of the radius r on the r axis raxis [r units]: r - rmin, or log10(r / rmin) on a log axis (set logscale r).

Attributes: pure

Returns: real(kind=R8P)

fortran
function polar_rho(raxis, r) result(rho)

Arguments

NameTypeIntentAttributesDescription
raxistype(axis_object)inRadial axis.
rreal(kind=R8P)inRadius.

Call graph

polar_series ​

Whether series can be drawn on a polar panel (see POLAR_STYLES).

Attributes: elemental

Returns: logical

fortran
function polar_series(series) result(ok)

Arguments

NameTypeIntentAttributesDescription
seriestype(series_object)inSeries.

Call graph

parallel_axis ​

The parallel axis k (set paxis k, else autoscaled without extension and without ticks) set up for the values of the k-th series (of the series members, the spoke of each spider plot group), npx pixels long.

Returns: type(axis_object)

fortran
function parallel_axis(self, k, npx, members) result(axis)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
kinteger(kind=I4P)inAxis number.
npxreal(kind=R8P)inAxis length [px].
membersinteger(kind=I4P)inoptionalSeries of the axis, the k-th alone if absent.

Call graph

is_panel_chart ​

Whether the style with is a chart alone in its panel, without the x and y axes: pie, gauge, radar, rose, and the parallel axis and spider plots.

Attributes: elemental

Returns: logical

fortran
function is_panel_chart(with) result(is)

Arguments

NameTypeIntentAttributesDescription
withinteger(kind=I4P)inStyle code.

Call graph

has_image ​

Whether the panel has an image; with palette true, an image of values colored by the palette (not RGB) or a series colored by it (lc palette): the color axis and its box are then drawn.

Attributes: pure

Returns: logical

fortran
function has_image(self, palette) result(has)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
palettelogicalinoptionalPalette images only.

Call graph

any_image ​

Whether the series all hold an image, a palette one (not RGB) if palette. A module procedure on the series array, as image_range: gfortran 16 debug builds misread the components of self%series(s) through the class dummy.

Attributes: pure

Returns: logical

fortran
function any_image(all, palette) result(has)

Arguments

NameTypeIntentAttributesDescription
alltype(series_object)inSeries of the panel.
palettelogicalinPalette images only.

Call graph

notes_in_palette ​

Whether a label of the panel is in a palette color (set label ... tc palette).

Attributes: pure

Returns: logical

fortran
function notes_in_palette(self) result(yes)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.

Call graph

effective_palette ​

palette, or the palette of the theme if it has the default colors: from the dark glass to the emissive colors (vfd), from the pale glass to the dark segments (lcd), quantized as palette (maxcolors).

Returns: type(palette_object)

fortran
function effective_palette(palette, theme) result(p)

Arguments

NameTypeIntentAttributesDescription
palettetype(palette_object)inPanel palette.
themecharacter(len=*)inTheme name.

Call graph

is_readout ​

Whether the s-th series is a readout.

Attributes: elemental

Returns: logical

fortran
function is_readout(self, s) result(is)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
sinteger(kind=I4P)inSeries index.

Call graph

title_rows ​

Lines of the title: one more per new line in it (gnuplot's "\n").

Attributes: pure

Returns: integer(kind=I4P)

fortran
function title_rows(self) result(rows)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.

Call graph

has_title ​

Whether the panel has a non-empty title.

Attributes: pure

Returns: logical

fortran
function has_title(self) result(has)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.

Call graph

place_plot_area ​

Plot area left by the margins that tick labels, axis labels, title and a key above need, measured by the device.

Attributes: pure

Returns: real(kind=R8P)

fortran
function place_plot_area(self, backend, x0, y0, width, height, font_size, above) result(area)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
backendclass(backend_object)inOutput device, for text widths.
x0real(kind=R8P)inBox left side [px].
y0real(kind=R8P)inBox top side [px].
widthreal(kind=R8P)inBox width [px].
heightreal(kind=R8P)inBox height [px].
font_sizereal(kind=R8P)inFont size [px].
abovereal(kind=R8P)inRoom for a key between the title and the plot [px].

Call graph

colorbox_width ​

Room of the color box at the right of the plot area: a gap, the box, a gap, its tick labels, the label [px].

Attributes: pure

Returns: real(kind=R8P)

fortran
function colorbox_width(self, backend, font_size) result(room)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
backendclass(backend_object)inOutput device, for text widths.
font_sizereal(kind=R8P)inFont size [px].

Call graph

colorbox_height ​

Room of a horizontal color box below the x labels: a gap, the box, its tick labels, the label [px].

Attributes: pure

Returns: real(kind=R8P)

fortran
function colorbox_height(self, font_size) result(room)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
font_sizereal(kind=R8P)inFont size [px].

Call graph

time_attribute ​

The input time format of a time axis (the viewer's mark of one), empty if numeric.

Attributes: pure

Returns: character(len=:)

fortran
function time_attribute(axis) result(text)

Arguments

NameTypeIntentAttributesDescription
axistype(axis_object)inAxis.

Call graph

label_rows ​

Lines of the tallest major tick label (new lines in it), at least 1.

Attributes: pure

Returns: integer(kind=I4P)

fortran
function label_rows(ticks) result(rows)

Arguments

NameTypeIntentAttributesDescription
tickstype(tick_object)inTicks.

Call graph

element_px ​

The size [px] of a text element in font (the page's font_size if unset); on a text device, which has one cell, the page's.

Attributes: pure

Returns: real(kind=R8P)

fortran
function element_px(backend, font, font_size) result(size)

Arguments

NameTypeIntentAttributesDescription
backendclass(backend_object)inOutput device.
fonttype(font_object)inElement font.
font_sizereal(kind=R8P)inPage font size [px].

Call graph

row_step ​

Distance between two lines of text [px]: a row of a text device, else a line height.

Returns: real(kind=R8P)

fortran
function row_step(backend, font_size) result(step)

Arguments

NameTypeIntentAttributesDescription
backendclass(backend_object)inOutput device.
font_sizereal(kind=R8P)inFont size [px].

Call graph

on_zero ​

Whether ticks set axis (tics) lie on the zero of the other axis: linear, with 0 in its range.

Attributes: pure

Returns: logical

fortran
function on_zero(tics, other) result(yes)

Arguments

NameTypeIntentAttributesDescription
ticstype(tics_object)inTick settings.
othertype(axis_object)inThe other coordinate's axis.

Call graph

limits ​

Whether the ticks and border side of axis are limited to its data range (rangelimited, with data).

Attributes: pure

Returns: logical

fortran
function limits(axis) result(yes)

Arguments

NameTypeIntentAttributesDescription
axistype(axis_object)inAxis.

Call graph

offset_px ​

A text offset on the page [px, x right, y down] (gnuplot's map_position_r): each coordinate in its system, character (0.6 of the font size wide, the font size high), graph (fractions of the plot width and height [px]) or screen (fractions of the canvas); y upward as given.

Attributes: pure

Returns: real(kind=R8P)

fortran
function offset_px(offset, systems, plot, canvas, font_size) result(d)

Arguments

NameTypeIntentAttributesDescription
offsetreal(kind=R8P)inOffset.
systemscharacter(len=*)inCoordinate systems.
plotreal(kind=R8P)inPlot area width and height [px].
canvasreal(kind=R8P)inPage width and height [px].
font_sizereal(kind=R8P)inFont size [px].

Call graph

view3d_place ​

The position p of an annotation in a 3D view as screen fractions (gnuplot's map3d_position): page systems (screen, character) as they are; else x, y and z in axis values (graph: fractions of the axes; screen and character along a projected one read as graph fractions) projected by the view. In the xz and yz projections a flat position (x and y graph fractions, z 0 in the graph system) is read on the projection plane, gnuplot's: horizontally along z, vertically along x (xz) or y (yz); not the vertices of a polygon (solid).

Attributes: pure

Returns: type(place_object)

fortran
function view3d_place(f, p, canvas, xaxis, yaxis, zaxis, solid) result(q)

Arguments

NameTypeIntentAttributesDescription
ftype(view3d_frame)inThe view.
ptype(place_object)inPosition.
canvasreal(kind=R8P)inPage width and height [px].
xaxistype(axis_object)inx axis.
yaxistype(axis_object)iny axis.
zaxistype(axis_object)inz axis.
solidlogicalinoptionalA polygon vertex.

Call graph

map_key_entries ​

gnuplot's 3D key entries of a map view (draw_key's sample3d): the key character (0.7 of the key font size), the sample (4 characters and a tick), no first anchor (the texts place them), the text extent (the longest title and a character).

Attributes: pure

Returns: real(kind=R8P)

fortran
function map_key_entries(self, geo, key_px) result(s3)

Arguments

NameTypeIntentAttributesDescription
selfclass(axes_object)inPanel.
geotype(map_geometry)inThe map's geometry.
key_pxreal(kind=R8P)inKey font size [px].

Call graph

point_in_xy ​

Whether point i of one lies within the x and y ranges set (a point without coordinates counts).

Attributes: pure

Returns: logical

fortran
function point_in_xy(one, i, xaxis, yaxis) result(inside)

Arguments

NameTypeIntentAttributesDescription
onetype(series_object)inSeries.
iinteger(kind=I4P)inPoint.
xaxistype(axis_object)inx axis.
yaxistype(axis_object)iny axis.

Call graph

axis_middle ​

The middle of axis (in its linear space: the geometric middle of a log axis).

Attributes: pure

Returns: real(kind=R8P)

fortran
function axis_middle(axis) result(mid)

Arguments

NameTypeIntentAttributesDescription
axistype(axis_object)inAxis.

Call graph

in_range ​

Whether v lies within the range of axis (its ends included, a hair of tolerance).

Attributes: pure

Returns: logical

fortran
function in_range(axis, v) result(yes)

Arguments

NameTypeIntentAttributesDescription
axistype(axis_object)inAxis.
vreal(kind=R8P)inValue.

Call graph

corner_index ​

gnuplot's MAP_HEIGHT_X: 2 for a value at the far end of axis (beyond 0.9 of it), else 1.

Attributes: pure

Returns: integer(kind=I4P)

fortran
function corner_index(v, axis) result(i)

Arguments

NameTypeIntentAttributesDescription
vreal(kind=R8P)inValue.
axistype(axis_object)inAxis.

Call graph

within ​

Whether a tick at v is drawn: always, or within the data range of a rangelimited axis (a hair of tolerance).

Attributes: pure

Returns: logical

fortran
function within(axis, v) result(yes)

Arguments

NameTypeIntentAttributesDescription
axistype(axis_object)inAxis.
vreal(kind=R8P)inTick value.

Call graph

label_dx ​

Horizontal shift of the tick labels of tics [px]: their offset in characters.

Attributes: pure

Returns: real(kind=R8P)

fortran
function label_dx(tics, font_size) result(dx)

Arguments

NameTypeIntentAttributesDescription
ticstype(tics_object)inAxis tick settings.
font_sizereal(kind=R8P)inFont size [px].

Call graph

label_dy ​

Vertical shift of the tick labels of tics [px]: their offset in characters (y up).

Attributes: pure

Returns: real(kind=R8P)

fortran
function label_dy(tics, font_size) result(dy)

Arguments

NameTypeIntentAttributesDescription
ticstype(tics_object)inAxis tick settings.
font_sizereal(kind=R8P)inFont size [px].

Call graph

Released under the GPL v3, BSD 2-Clause, BSD 3-Clause or MIT License.