Skip to content

foresight_figure ​

foresight_figure, a figure: page, font and a grid of plot panels, driven by a gnuplot-like API.

Every method mirrors a gnuplot command (plot, set title, set xrange, set logscale, set multiplot, ...) so that the command line interpreter maps one-to-one onto this API. Settings and plots apply to the current panel; a figure has one panel unless set_multiplot lays out a grid, filled panel by panel with next_panel.

fortran
 type(figure_object) :: fig
 real(R8P)           :: x(3), y(3)
 x = [1.0_R8P, 2.0_R8P, 3.0_R8P]
 y = x**2
 call fig%set_title('parabola')
 call fig%plot(x, y, title='x^2', with='linespoints')
 call fig%save('parabola.svg')

Source: src/lib/foresight_figure.F90

Dependencies

Contents ​

Variables ​

NameTypeAttributesDescription
PADreal(kind=R8P)parameterOuter padding [px].
GAPreal(kind=R8P)parameterGap below the multiplot title [px].
LINE_HEIGHTreal(kind=R8P)parameterText line height [font size].

Derived Types ​

figure_object ​

Figure.

Components

NameTypeAttributesDescription
widthreal(kind=R8P)Page width [px], gnuplot svg terminal default.
heightreal(kind=R8P)Page height [px], gnuplot svg terminal default.
font_sizereal(kind=R8P)Font size [px].
latin1logicalTexts in ISO 8859-1, written in UTF-8 (scripts' set encoding iso_8859_1).
enhancedlogicalTexts read as gnuplot's enhanced text (the scripts: on, as gnuplot; the library: off unless set).
refreshinteger(kind=I4P)HTML page reload period [s], 0 for none.
clear_screenlogicalClear the terminal before text output (live view).
text_charsetcharacter(len=9)Text output: dumb characters, or the block character set half, quadrants, sextants, braille (gnuplot block terminal).
text_colorscharacter(len=7)Text output colors: mono, ansi, ansi256, ansirgb.
themetype(theme_object)Output theme (foresight_theme), classic by default.
theme_chosenlogicalThe theme was set: FORESIGHT_THEME no longer applies.
rowsinteger(kind=I4P)Panel grid rows.
colsinteger(kind=I4P)Panel grid columns.
currentinteger(kind=I4P)Current panel, filled row by row.
layoutlogicalMultiplot grid: panels in cells, else in their origin/size boxes (single plot, manual multiplot).
columns_firstlogicalLayout filled column by column (gnuplot columnsfirst), else row by row.
upwardslogicalLayout filled from the bottom row (gnuplot upwards), else from the top.
manuallogicalManual multiplot: panels added on demand.
titlecharacter(len=:)allocatableMultiplot title, empty for none.
title_fonttype(font_object)Multiplot title font (set multiplot title ... font).
svg_glyphslogicalSVG texts drawn from the compiled-in glyphs.
pdf_line_scalereal(kind=R8P)PDF line widths times this (linewidth).
pdf_dash_scalereal(kind=R8P)PDF dash lengths times this (dashlength).
pdf_capcharacter(len=7)PDF line caps: butt, rounded, square.
pdf_monologicalPDF monochrome (mono).
page_colorcharacter(len=16)Page color (background), before the theme's map.
pdf_glyphslogicalPDF texts in the compiled-in fonts, embedded.
tex_standalonelogicalcairolatex: a whole LaTeX document (standalone).
tex_colortextlogicalcairolatex: texts in their colors (colortext).
tex_headercharacter(len=:)allocatablecairolatex: LaTeX code (header), empty for none.
tex_fontcharacter(len=:)allocatablecairolatex: LaTeX font name, empty for none.
tex_sizereal(kind=R8P)cairolatex: font size [pt] (a standalone document's).
font_familycharacter(len=48)Page font family (set terminal ... font "name,size"), empty for foresight's.
panelstype(axes_object)allocatablePlot panels.
layout_marginsreal(kind=R8P)Layout plot areas within left, right, bottom, top (gnuplot set multiplot ... margins): screen fractions, characters with layout_chars; -1 none.
layout_charslogicalThose margins are in characters.
layout_spacingreal(kind=R8P)Space between the layout plot areas, x and y (gnuplot spacing, 0.05 screen by default).
spacing_charslogicalThat space is in characters.
gnuplot_labelslogicalgnuplot's default tick labels, % h per label (the scripts'), on every axis of every panel.

Type-Bound Procedures

NameAttributesDescription
clearpass(self)Remove the series of the current panel, keeping the settings.
imagepass(self)gnuplot plot ... with image, a grid of values.
rgbimagepass(self)gnuplot plot ... with rgbimage|rgbalpha, a grid of colors.
initpass(self)Reset the figure, optionally resizing it.
next_panelpass(self)Move to the next multiplot panel, carrying the settings over.
plotpass(self)gnuplot plot, one series per call.
splot_pointspass(self)gnuplot splot of scattered points.
splot_gridpass(self)gnuplot splot of a grid.
splotgnuplot splot, one surface or set of points per call. Generic: splot_points, splot_grid
set_viewpass(self)gnuplot set view.
set_xyplanepass(self)gnuplot set xyplane.
set_hidden3dpass(self)gnuplot set hidden3d.
set_pm3dpass(self)gnuplot set pm3d.
set_spotlightpass(self)gnuplot set pm3d spotlight.
set_contourfillpass(self)gnuplot set contourfill.
set_wallpass(self)gnuplot set wall, set walls.
set_boxdepthpass(self)gnuplot set boxdepth.
set_contourpass(self)gnuplot set contour, set cntrparam, set cntrlabel.
set_dgrid3dpass(self)gnuplot set dgrid3d.
set_zlabelpass(self)gnuplot set zlabel.
set_zrangepass(self)gnuplot set zrange.
set_zticspass(self)gnuplot set ztics.
savepass(self)Render to a file; the format follows the extension.
set_anglespass(self)gnuplot set angles.
set_borderpass(self)gnuplot set border / unset border.
set_errorbarspass(self)gnuplot set errorbars.
set_boxwidthpass(self)gnuplot set boxwidth.
set_cblabelpass(self)gnuplot set cblabel.
set_cbrangepass(self)gnuplot set cbrange.
set_colorboxpass(self)gnuplot set colorbox / unset colorbox.
set_formatpass(self)gnuplot set format.
set_time_axespass(self)gnuplot set xdata time.
set_timefmtpass(self)gnuplot set timefmt.
new_histogrampass(self)gnuplot plot newhistogram.
add_labelpass(self)Add a label object (gnuplot set label).
add_arrowpass(self)Add an arrow object (gnuplot set arrow).
add_objectpass(self)Add a shape object (gnuplot set object).
add_pixmappass(self)Add an image from a PNG file (gnuplot set pixmap).
unset_pixmappass(self)gnuplot unset pixmap.
set_labelpass(self)gnuplot set label.
set_arrowpass(self)gnuplot set arrow.
set_objectpass(self)gnuplot set object.
unset_labelpass(self)gnuplot unset label.
unset_arrowpass(self)gnuplot unset arrow.
unset_objectpass(self)gnuplot unset object.
set_gridpass(self)gnuplot set grid / unset grid.
set_keypass(self)gnuplot set key / unset key.
set_logscalepass(self)gnuplot set logscale.
set_multiplotpass(self)gnuplot set multiplot layout rows,cols title "...".
set_originpass(self)gnuplot set origin.
set_colorsequencepass(self)gnuplot set colorsequence.
set_palettepass(self)gnuplot set palette.
set_palette_gradientpass(self)gnuplot set palette defined/file from arrays.
set_paxispass(self)gnuplot set paxis N range|tics|label.
set_polarpass(self)gnuplot set polar / unset polar.
set_raxispass(self)gnuplot set raxis / unset raxis.
set_readoutpass(self)Readouts: on/off, position, window, digit size.
set_refreshpass(self)HTML page reload period, for live monitoring.
set_rrangepass(self)gnuplot set rrange.
set_rticspass(self)gnuplot set rtics / unset rtics.
set_sizepass(self)gnuplot set size.
set_style_fillpass(self)gnuplot set style fill.
set_style_histogrampass(self)gnuplot set style histogram.
set_style_boxplotpass(self)gnuplot set style boxplot.
set_style_spiderplotpass(self)gnuplot set style spiderplot.
set_spiderplotpass(self)gnuplot set spiderplot / unset spiderplot.
set_textpass(self)Text output: gnuplot dumb or block terminal, colors.
set_themepass(self)Output theme: classic, vfd, lcd; glow.
set_thetapass(self)gnuplot set theta.
set_marginpass(self)Set a margin, set lmargin...
set_enhancedpass(self)Enhanced text on or off.
set_fontglyphspass(self)Texts drawn from the compiled-in glyphs, or set by font names.
set_page_sizepass(self)Page size in px, in, cm or pt (gnuplot's terminal size).
set_fontpass(self)Page font, gnuplot's "family,size" in points.
set_pdfpass(self)PDF line widths, dashes, caps, monochrome, background.
set_cairolatexpass(self)LaTeX picture options: standalone, colortext, header, font, size.
set_border_stylepass(self)Border line: lc, lw, dt.
set_zeroaxispass(self)Zero axes.
set_key_stylepass(self)Key layout: reverse, Left, invert, opaque, ...
set_titlepass(self)gnuplot set title.
set_trangepass(self)gnuplot set trange.
set_tticspass(self)gnuplot set ttics / unset ttics.
set_xlabelpass(self)gnuplot set xlabel.
set_xrangepass(self)gnuplot set xrange.
set_xticspass(self)gnuplot set xtics.
set_mxticspass(self)gnuplot set mxtics.
set_myticspass(self)gnuplot set mytics.
set_my2ticspass(self)gnuplot set my2tics.
set_mx2ticspass(self)gnuplot set mx2tics.
set_mcbticspass(self)gnuplot set mcbtics.
set_cbticspass(self)gnuplot set cbtics.
unset_cbticspass(self)gnuplot unset cbtics.
set_ylabelpass(self)gnuplot set ylabel.
set_yrangepass(self)gnuplot set yrange.
set_yticspass(self)gnuplot set ytics.
set_y2labelpass(self)gnuplot set y2label.
set_y2rangepass(self)gnuplot set y2range.
set_y2ticspass(self)gnuplot set y2tics.
set_x2labelpass(self)gnuplot set x2label.
set_x2rangepass(self)gnuplot set x2range.
set_x2ticspass(self)gnuplot set x2tics.
unset_logscalepass(self)gnuplot unset logscale.
unset_multiplotpass(self)gnuplot unset multiplot.
unset_xticspass(self)gnuplot unset xtics.
unset_yticspass(self)gnuplot unset ytics.
unset_y2ticspass(self)gnuplot unset y2tics.
unset_x2ticspass(self)gnuplot unset x2tics.
environment_themepass(self)The theme of FORESIGHT_THEME, unless one was set.
ensure_panelspass(self)Allocate the single default panel if needed.
renderpass(self)Render on a device.

Subroutines ​

clear ​

Remove the series of the current panel, keeping every setting: a new gnuplot plot replaces the previous one, with the ranges of the previous plot command (plot [min:max]).

fortran
subroutine clear(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.

Call graph

rgbimage ​

Image of the colors red, green, blue (and alpha, opaque if absent) per pixel (column, row), 0 to 255, as gnuplot plot ... with rgbimage (rgbalpha): pixel centres x(column), y(row) as image; a NaN component makes its pixel transparent. No palette nor color box.

fortran
subroutine rgbimage(self, red, green, blue, x, y, title, alpha)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
redreal(kind=R8P)inRed components (column, row), rows upward.
greenreal(kind=R8P)inGreen components.
bluereal(kind=R8P)inBlue components.
xreal(kind=R8P)inoptionalPixel centre abscissae.
yreal(kind=R8P)inoptionalPixel centre ordinates.
titlecharacter(len=*)inoptionalKey title.
alphareal(kind=R8P)inoptionalOpacities, 0 (transparent) to 255.

Call graph

image ​

Image of the values z(column, row) (a heatmap), as gnuplot plot ... with image: pixel centres x(column) and y(row), evenly spaced and increasing (0, 1, ... if absent, as gnuplot matrix), colored by set_palette over set_cbrange; NaN values are transparent. The x and y axes fit the pixel edges.

fortran
subroutine image(self, z, x, y, title)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
zreal(kind=R8P)inValues (column, row), rows upward.
xreal(kind=R8P)inoptionalPixel centre abscissae.
yreal(kind=R8P)inoptionalPixel centre ordinates.
titlecharacter(len=*)inoptionalKey title.

Call graph

init ​

Reset the figure to gnuplot defaults, optionally resizing it.

fortran
subroutine init(self, width, height, font_size)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
widthinteger(kind=I4P)inoptionalPage width [px].
heightinteger(kind=I4P)inoptionalPage height [px].
font_sizereal(kind=R8P)inoptionalFont size [px].

Call graph

next_panel ​

Move to the next panel of the multiplot: the next grid cell, or a new panel in a manual multiplot; the settings of the current panel carry over, as in gnuplot.

fortran
subroutine next_panel(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.

Call graph

plot ​

Add the series (x, y) to the current panel, as gnuplot plot ... title ... with ... lc ... lw ... dt ... ps ... axes. colors gives each point its color (gnuplot lc variable) with lines, points, linespoints, impulses and the error bars: a line segment takes the color of its end point, a bar its point's; in the key, the line sample that of the first point, the point sample that of the last one. palette_z colors each point by its value through the palette over the color axis (gnuplot lc palette z, the same styles and rules; the color axis spans these values and its box is drawn); palette_cb (a color axis value) and palette_frac (a fraction of the palette, 0 to 1) color the whole series (lc palette cb|frac).

Error bar styles (yerrorbars, xerrorbars, xyerrorbars) take the bar bounds ylow/yhigh, xlow/xhigh. axes='x1y2' plots the series against the second y axis, scaled on its own, x2y1 against the second x axis (x2y2 both). pt is gnuplot's point type (0 a dot, 1 plus, 2 cross, 3 star, 4-5 square, 6-7 circle, 8-9 triangle, 10-11 inverted triangle, 12-13 diamond, 14-15 pentagon, odd ones from 5 filled; cycling every 15), 9 px wide at ps 1; without it points are round dots.

with='readout' (a foresight extension) shows the last finite y in seven-segment digits, titled by title, on a glass of format (a printf conversion with a field width, '%9.2e'; '%10.3e' if absent): see foresight_readout and set_readout. A readout takes lc only among the style options.

with='boxes' draws a bar from y = 0 to each y, width wide (per box; NaN or absent: set_boxwidth, else the boxes touch); with='filledcurves' fills down to base, between ylow and y, or the closed polygon of the points. fs takes gnuplot fill style words ('solid 0.5 noborder'), over set_style_fill.

with='histograms' draws a bar per y in the row at x (0, 1, 2, ... as gnuplot), laid out with the other histograms of the panel by set_style_histogram. xlabels label the abscissae (gnuplot xtic(N)): text labels then replace the x ticks.

with='circles' draws a circle per point, radius in x units (2% of the plot width if absent or NaN), a wedge with angles(:, i) = start and end [deg, counterclockwise from the x direction]. with='pie' (a foresight extension, alone in its panel) draws the y as slices from 12 o'clock clockwise, labelled by xlabels with their percentage in the key; donut (0 to below 1) leaves a hole of that fraction of the radius.

Panel charts (foresight extensions, alone in their panel, several of the same kind side by side for gauges and radars): with='gauge' shows the last finite y on a 270-degree sweep over scale (its two end values), lit in fs='segments N' cells if set, the value in digits of format; with='radar' a polygon over a spoke per point, named by xlabels; with='rose' equal sectors of area by value (radius by value with linear).

with='boxerrorbars' draws boxes (as boxes) with y error bars from ylow to yhigh; boxxyerror a rectangle from xlow to xhigh, ylow to yhigh; candlesticks and financebars take the open y, low ylow, high yhigh and close (a box-and-whisker plot: box start, whisker ends, box end), candlesticks a width and whiskerbars (crossbars, a fraction of the box width). with='boxplot' draws the quartiles, median, whiskers and outliers of the values y at x(1), one box per level of factors if given, laid out by set_style_boxplot.

with='vectors' draws arrows from the points by dx, dy; arrows by length (> 0 x units, kept at any angle; in (-1, 0) a fraction of the plot width) and angle [deg]; head takes gnuplot's words ('heads filled'). ellipses take major, minor diameters (x and y units) and angle [deg]; polygons fill each NaN-separated run of points; labels write labels(i) at the points with the label words ('left offset 1,0 point'); sectors draw the annular sectors from azimuth x, radius y by angle (the angle unit) and width.

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

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
xreal(kind=R8P)inAbscissae.
yreal(kind=R8P)inOrdinates.
titlecharacter(len=*)inoptionalKey title, empty or absent for none.
withcharacter(len=*)inoptionalPlotting style: lines (default), points, ....
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 (default), x1y2, x2y1, x2y2.
ptinteger(kind=I4P)inoptionalgnuplot point type, >= 0.
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.
radiusreal(kind=R8P)inoptionalCircle radii [x units].
anglesreal(kind=R8P)inoptionalWedge angles (2, point) [deg].
donutreal(kind=R8P)inoptionalPie hole fraction.
scalereal(kind=R8P)inoptionalGauge scale: the values at the sweep ends.
linearlogicalinoptionalRose radius by value.
closereal(kind=R8P)inoptionalClosing values of candlesticks and finance bars.
whiskerbarsreal(kind=R8P)inoptionalCandlestick whisker crossbars, a box width fraction.
factorscharacter(len=*)inoptionalFactor level of each boxplot value.
dxreal(kind=R8P)inoptionalVector extents along x.
dyreal(kind=R8P)inoptionalVector extents along y.
lengthreal(kind=R8P)inoptionalArrow lengths.
anglereal(kind=R8P)inoptionalArrow or ellipse angles [deg], sector extents.
majorreal(kind=R8P)inoptionalEllipse major diameters.
minorreal(kind=R8P)inoptionalEllipse minor diameters.
labelscharacter(len=*)inoptionalTexts of labels.
labelcharacter(len=*)inoptionalLabel option words.
headcharacter(len=*)inoptionalArrowhead words.
originsreal(kind=R8P)inoptionalSector centres (2, point).
curvecharacter(len=*)inoptionalFilled curve options ('x1', 'above', 'xy=0,1').
atreal(kind=R8P)inoptionalPosition of a parallel axis.
colorscharacter(len=*)inoptionalColor of each point (gnuplot lc variable).
palette_zreal(kind=R8P)inoptionalPalette value of each point (lc palette z).
palette_cbreal(kind=R8P)inoptionalA color axis value (lc palette cb).
palette_fracreal(kind=R8P)inoptionalA fraction of the palette (lc palette frac).
piinteger(kind=I4P)inoptionalA point marker every pi points (pointinterval).
labels_axischaracter(len=*)inoptionalAxis the xlabels mark: x (default, xtic), x2 at the abscissae, y (ytic), y2 at the ordinates.

Call graph

save ​

Render the figure to file; the format follows the name: .svg static, .html interactive, .pdf PDF, .tex a LaTeX picture whose texts LaTeX sets (gnuplot's cairolatex: NAME.tex and its graphics NAME.pdf, or NAME-inc.pdf for a standalone document, see set_cairolatex), .txt text (the gnuplot dumb or block terminal, see set_text), - text on standard output. Page color. Graphics file, without extension.

fortran
subroutine save(self, file)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
filecharacter(len=*)inOutput file.

Call graph

set_cblabel ​

Color box label, as gnuplot set cblabel; empty for none.

fortran
subroutine set_cblabel(self, label)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
labelcharacter(len=*)inLabel.

Call graph

set_cbrange ​

Color range of the images, as gnuplot set cbrange [min:max]: an absent end is autoscaled to the values.

fortran
subroutine set_cbrange(self, min, max)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
minreal(kind=R8P)inoptionalValue of the first palette color.
maxreal(kind=R8P)inoptionalValue of the last palette color.

Call graph

set_colorbox ​

Draw the color box of the images (on absent or true), as gnuplot set colorbox, or not (on false: unset colorbox, which also resets every option). horizontal (else vertical), user (in the origin, size box: canvas fractions from the bottom left; else at the default place: right of the plot, or below it when horizontal), border, invert (a vertical box with low values at the top). With no option at all the box returns to the default place, the others kept, as gnuplot's bare set colorbox.

fortran
subroutine set_colorbox(self, on, horizontal, user, origin, size, border, invert)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
onlogicalinoptionalBox drawn.
horizontallogicalinoptionalHorizontal, else vertical.
userlogicalinoptionalIn the user box, else at the default place.
originreal(kind=R8P)inoptionalUser box bottom left, canvas fractions.
sizereal(kind=R8P)inoptionalUser box width and height, canvas fractions (> 0).
borderlogicalinoptionalFrame drawn.
invertlogicalinoptionalLow values at the top of a vertical box.

Call graph

set_palette ​

Palette of the images, as gnuplot set palette: '' (the default, rgbformulae 7,5,15), 'rgbformulae 33,13,10', 'defined (0 "blue", 1 "white", 2 "red")', 'cubehelix start 0 cycles 1', 'gray', 'viridis', 'negative', 'maxcolors 8'; a named palette of foresight_colormaps, any case ('batlow', 'vik negative', 'romaO maxcolors 12').

fortran
subroutine set_palette(self, words)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
wordscharacter(len=*)inPalette words.

Call graph

set_colorsequence ​

Linetype colors of the series, lc N and the slices of the current panel (carried to the next ones), as gnuplot set colorsequence default|podo|classic; beyond gnuplot, a categorical order ('batlowS', ..., any case) and the number of its colors taken (8 by default), the most distinct first. Series already added keep theirs; a theme recolors gnuplot's default sequence only.

fortran
subroutine set_colorsequence(self, name, colors)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
namecharacter(len=*)inSequence.
colorsinteger(kind=I4P)inoptionalColors of a categorical order, 1 to 100.

Call graph

set_palette_gradient ​

Palette of the images as a gradient, as gnuplot set palette defined or set palette file: colors(:, k) (red, green, blue, 0 to 1, clipped) at positions(k), increasing (equal ones make a sharp step), mapped to 0..1. Other palette settings (negative, maxcolors) are kept; set_palette words can follow.

fortran
subroutine set_palette_gradient(self, positions, colors)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
positionsreal(kind=R8P)inPositions.
colorsreal(kind=R8P)inColors (red, green, blue; position).

Call graph

set_angles ​

Unit of the angles, as gnuplot set angles degrees|radians (radians by default): theta of a polar panel and the trigonometric functions of its expressions (set_angles affects the script interpreter's compilation).

fortran
subroutine set_angles(self, unit)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
unitcharacter(len=*)indegrees or radians.

Call graph

set_border ​

Border sides, as gnuplot set border MASK [polar] (unset border is mask 0): 1 bottom, 2 left, 4 top, 8 right (31 by default, the full frame); polar adds the circle of the largest r on a polar panel. Without mask, polar keeps the sides (gnuplot: unset border; set border polar draws the circle alone), else the full frame is restored.

fortran
subroutine set_border(self, mask, polar)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
maskinteger(kind=I4P)inoptionalSides; 31 if absent.
polarlogicalinoptionalPolar border.

Call graph

set_border_style ​

The border's line, as gnuplot set border ... lc C lw W dt N: lc empty for the frame color.

fortran
subroutine set_border_style(self, lc, lw, dt)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
lccharacter(len=*)inoptionalLine color.
lwreal(kind=R8P)inoptionalLine width [px].
dtinteger(kind=I4P)inoptionalDash type, 1 solid.

Call graph

set_zeroaxis ​

Lines at the zero of the axes (x: y = 0, y: x = 0, x2, y2; blank-separated), as gnuplot set xzeroaxis (on absent or true) or unset, with their line: lc empty for the frame color, dt 3 gnuplot's dots.

fortran
subroutine set_zeroaxis(self, axes, on, lc, lw, dt)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
axescharacter(len=*)inAxes.
onlogicalinoptionalDrawn.
lccharacter(len=*)inoptionalLine color.
lwreal(kind=R8P)inoptionalLine width [px].
dtinteger(kind=I4P)inoptionalDash type.

Call graph

set_boxwidth ​

Box width, as gnuplot set boxwidth W [absolute|relative]: width absent or 0 for the default, the boxes touching; relative scales that default instead of setting the width.

fortran
subroutine set_boxwidth(self, width, relative)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
widthreal(kind=R8P)inoptionalWidth, or fraction of the default with relative.
relativelogicalinoptionalRelative width.

Call graph

set_style_fill ​

Fill of the boxes and filled curves plotted next, as gnuplot set style fill: 'empty', 'solid 0.5', 'transparent solid 0.3 noborder', 'solid border lc "black"'.

fortran
subroutine set_style_fill(self, words)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
wordscharacter(len=*)inFill style words.

Call graph

set_style_histogram ​

Layout of the histograms plotted next, as gnuplot set style histogram clustered [gap G]|errorbars [gap G] [lw W]|rowstacked|columnstacked: style clustered (the default), errorbars (clustered, each bar with its error bar: plot ylow, yhigh), rowstacked (a stack per row) or columnstacked (a stack per histogram, its rows in their linetype colors, the row names given as labels its key entries); gap the space between clusters, in bar widths (2 by default, kept until set again); lw the error bar width [px].

fortran
subroutine set_style_histogram(self, style, gap, lw)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
stylecharacter(len=*)inclustered, errorbars, rowstacked or columnstacked.
gapreal(kind=R8P)inoptionalGap between clusters [bars].
lwreal(kind=R8P)inoptionalError bar width [px].

Call graph

new_histogram ​

Start a new group of histograms in the current plot, as gnuplot plot newhistogram ["title"] [at X] [lt N]: the histograms plotted next form a group laid out after the previous one (2 rows after its last), or from at; title is written below the x axis under the group; lt makes their default colors start at linetype N.

fortran
subroutine new_histogram(self, title, at, lt)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
titlecharacter(len=*)inoptionalGroup title.
atreal(kind=R8P)inoptionalGroup start.
ltinteger(kind=I4P)inoptionalFirst linetype of the group.

Call graph

set_style_boxplot ​

Layout of the boxplots plotted next, as gnuplot set style boxplot: words among range R (1.5), fraction F, outliers (the default) or nooutliers, pointtype P (7), candlesticks (the default) or financebars, medianlinewidth W, separation S (1), labels off|auto|x, sorted or unsorted (the default).

fortran
subroutine set_style_boxplot(self, words)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
wordscharacter(len=*)inStyle words.

Call graph

set_format ​

Tick label format of the axes named x, y, y2, cb (all when absent), as gnuplot set format: text with one printf conversion %[flags][width][.precision] f, e, E, g, G or h (g with a x10 superscript exponent), e.g. '%.1e' or '%g s'; an empty format restores the default labels. On a time axis (set_time_axes) a time format, '%H:%M' (see foresight_time strftime). With geographic (gnuplot set format x "..." geographic, set xtics geographic) the labels are degrees, minutes and seconds: %D %M %S whole, %d %m %s as %f, %E %N the compass letter, e.g. '%D %E' (foresight_format dms_label).

fortran
subroutine set_format(self, format, axes, geographic)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
formatcharacter(len=*)inLabel format.
axescharacter(len=*)inoptionalAxes names, e.g. y, xy or y2.
geographiclogicalinoptionalLabels in degrees, minutes, seconds.

Call graph

set_time_axes ​

Time axes, as gnuplot set xdata time: the values of the axes named x, y, y2, x2 (all when absent) are seconds since 1970-01-01 00:00 UTC, ticked in whole time units and labelled by a time format (set_format, or one invented from the range); on false turns them back to numbers. timefmt (gnuplot set timefmt, default %d/%m/%y,%H:%M) orders day and month in the invented labels.

fortran
subroutine set_time_axes(self, axes, on, timefmt)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
axescharacter(len=*)inoptionalAxes names, e.g. x or xy2.
onlogicalinoptionalTime axes (default), or numbers.
timefmtcharacter(len=*)inoptionalInput time format.

Call graph

set_timefmt ​

The input time format (gnuplot set timefmt) of every axis of the current panel: the day and month order of the labels invented for time axes.

fortran
subroutine set_timefmt(self, timefmt)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
timefmtcharacter(len=*)inInput time format.

Call graph

add_label ​

Add label to the current panel: tag 0 takes the next free tag, an existing tag is replaced (gnuplot set label N).

fortran
subroutine add_label(self, label)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
labeltype(label_object)inLabel.

Call graph

add_arrow ​

Add arrow to the current panel: tag 0 takes the next free tag, an existing tag is replaced.

fortran
subroutine add_arrow(self, arrow)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
arrowtype(arrow_object)inArrow.

Call graph

add_object ​

Add object to the current panel: tag 0 takes the next free tag, an existing tag is replaced.

fortran
subroutine add_object(self, object)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
objecttype(shape_object)inObject.

Call graph

add_pixmap ​

Add pixmap to the current panel, an existing tag replaced.

fortran
subroutine add_pixmap(self, pixmap)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
pixmaptype(pixmap_object)inPixmap.

Call graph

unset_pixmap ​

Remove the pixmap tag of the current panel, every pixmap without it (gnuplot unset pixmap N, unset pixmaps).

fortran
subroutine unset_pixmap(self, tag)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
taginteger(kind=I4P)inoptionalTag.

Call graph

unset_label ​

Remove the label tag of the current panel, every label without it (gnuplot unset label [N]).

fortran
subroutine unset_label(self, tag)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
taginteger(kind=I4P)inoptionalTag.

Call graph

unset_arrow ​

Remove the arrow tag of the current panel, every arrow without it (gnuplot unset arrow [N]).

fortran
subroutine unset_arrow(self, tag)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
taginteger(kind=I4P)inoptionalTag.

Call graph

unset_object ​

Remove the object tag of the current panel, every object without it (gnuplot unset object [N]).

fortran
subroutine unset_object(self, tag)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
taginteger(kind=I4P)inoptionalTag.

Call graph

set_label ​

A label at (x, y), as gnuplot set label [tag] "text" at x,y: system the coordinate systems (first, the default, second, graph, screen; two words for x and y: 'graph first'), justify left (default), center or right, rotate [deg], color of the text, front over the frame (else behind the data), point a marker (pt, ps) at the position, offset the text offset, in characters or in offset_system (character, first, second, graph, screen; two words for x and y, as gnuplot offset graph 0.1, screen 0.02).

fortran
subroutine set_label(self, text, x, y, tag, system, justify, rotate, color, front, point, pt, ps, offset, offset_system)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
textcharacter(len=*)inText.
xreal(kind=R8P)inAbscissa.
yreal(kind=R8P)inOrdinate.
taginteger(kind=I4P)inoptionalTag, 0 or absent: the next free one.
systemcharacter(len=*)inoptionalCoordinate systems.
justifycharacter(len=*)inoptionalleft, center, right.
rotatereal(kind=R8P)inoptionalAngle [deg, counterclockwise].
colorcharacter(len=*)inoptionalText color.
frontlogicalinoptionalOver the frame.
pointlogicalinoptionalA point at the position.
ptinteger(kind=I4P)inoptionalPoint type.
psreal(kind=R8P)inoptionalPoint size.
offsetreal(kind=R8P)inoptionalText offset.
offset_systemcharacter(len=*)inoptionalIts coordinate systems.

Call graph

set_arrow ​

An arrow from (x1, y1) to (x2, y2), as gnuplot set arrow [tag] from x1,y1 to x2,y2: system the coordinate systems of the tail (as set_label), to_system those of the tip (the tail's by default), relative the tip relative to the tail (rto); head head (default), nohead, backhead or heads; length (x axis values) and angle [deg] of the heads; filled nofilled (default, two barbs), filled, empty or noborder; front over the frame; lc, lw, dt the line. Line of the dash type.

fortran
subroutine set_arrow(self, x1, y1, x2, y2, tag, system, to_system, relative, head, length, angle, filled, front, lc, lw, dt)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
x1real(kind=R8P)inTail abscissa.
y1real(kind=R8P)inTail ordinate.
x2real(kind=R8P)inTip abscissa.
y2real(kind=R8P)inTip ordinate.
taginteger(kind=I4P)inoptionalTag, 0 or absent: the next free one.
systemcharacter(len=*)inoptionalCoordinate systems of the tail.
to_systemcharacter(len=*)inoptionalCoordinate systems of the tip.
relativelogicalinoptionalThe tip relative to the tail.
headcharacter(len=*)inoptionalhead, nohead, backhead, heads.
lengthreal(kind=R8P)inoptionalHead length [x axis values].
anglereal(kind=R8P)inoptionalHead angle [deg].
filledcharacter(len=*)inoptionalnofilled, filled, empty, noborder.
frontlogicalinoptionalOver the frame.
lccharacter(len=*)inoptionalLine color.
lwreal(kind=R8P)inoptionalLine width [px].
dtinteger(kind=I4P)inoptionalDash type, 1..5.

Call graph

set_object ​

An object, as gnuplot set object [tag] rectangle|circle|ellipse|polygon: a rectangle from the corner (x(1), y(1)) to (x(2), y(2)), or centred on (x(1), y(1)) with width and height; a circle centred on (x(1), y(1)) of radius (x axis values), its arc [deg] a wedge if partial; an ellipse centred there, width and height (axis values), angle [deg]; a polygon of the vertices (x, y). system the coordinate systems (as set_label), fc the fill color, fs the fill style words ('solid 0.3 border'), lw the border width, dt its dash type (1 solid to 5), layer behind, back (default) or front, clip false to draw beyond the plot area. In 3D views a polygon takes the heights z of its vertices (in the system of the abscissae), and layer='depthorder' sorts it with the pm3d quadrangles (gnuplot's depthorder). By default, as gnuplot, a rectangle is filled with the page color and bordered black, the others empty, black.

fortran
subroutine set_object(self, kind, x, y, tag, system, width, height, radius, angle, arc, fc, fs, lw, dt, layer, clip, z)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
kindcharacter(len=*)inrectangle, circle, ellipse, polygon.
xreal(kind=R8P)inAbscissae.
yreal(kind=R8P)inOrdinates.
taginteger(kind=I4P)inoptionalTag, 0 or absent: the next free one.
systemcharacter(len=*)inoptionalCoordinate systems.
widthreal(kind=R8P)inoptionalRectangle or ellipse width.
heightreal(kind=R8P)inoptionalRectangle or ellipse height.
radiusreal(kind=R8P)inoptionalCircle radius.
anglereal(kind=R8P)inoptionalEllipse angle [deg].
arcreal(kind=R8P)inoptionalCircle arc [deg].
fccharacter(len=*)inoptionalFill color.
fscharacter(len=*)inoptionalFill style words.
lwreal(kind=R8P)inoptionalBorder width [px].
dtinteger(kind=I4P)inoptionalBorder dash type, 1 (solid) to 5.
layercharacter(len=*)inoptionalbehind, back, front.
cliplogicalinoptionalClipped by the plot area.
zreal(kind=R8P)inoptionalHeights of a 3D polygon's vertices.

Call graph

set_paxis ​

Parallel axis n of the parallel axis and spider plots, as gnuplot set paxis n range [min:max] (an absent end autoscaled to the values, without extension), set paxis n tics [START,]STEP[,END] (tics true: automatic ticks; false: none, the default), set paxis n label "text" (spider plots).

fortran
subroutine set_paxis(self, n, min, max, step, start, end, tics, label)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
ninteger(kind=I4P)inAxis number, >= 1.
minreal(kind=R8P)inoptionalRange start.
maxreal(kind=R8P)inoptionalRange end.
stepreal(kind=R8P)inoptionalTick step.
startreal(kind=R8P)inoptionalFirst tick.
endreal(kind=R8P)inoptionalLast tick.
ticslogicalinoptionalTicks on (automatic) or off.
labelcharacter(len=*)inoptionalAxis label.

Call graph

set_spiderplot ​

Spider plot coordinates (on absent or true), as gnuplot set spiderplot: the items of the panel are spider plot axes (its data style), its key not titled by the items; false restores the data style lines.

fortran
subroutine set_spiderplot(self, on)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
onlogicalinoptionalSpider plot on.

Call graph

set_style_spiderplot ​

Polygons of the spider plots plotted next, as gnuplot set style spiderplot: fill style words ('fs transparent solid 0.2 border', fs optional) and lw W, pt N, ps S.

fortran
subroutine set_style_spiderplot(self, words)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
wordscharacter(len=*)inStyle words.

Call graph

set_grid ​

Draw grid lines at the major ticks (on absent or true), as gnuplot set grid, or not. On a polar panel, polar > 0 draws the polar grid instead (gnuplot set grid polar STEP): rings at the major r ticks and spokes every polar degrees of theta (360: none, the rings alone, gnuplot set grid r); 0 restores the rectangular grid. spider draws the web of the spider plots (gnuplot set grid spiderplot) at the ticks of their first axis.

fortran
subroutine set_grid(self, on, polar, spider, lines, front, lc, lw, dt)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
onlogicalinoptionalGrid on.
polarreal(kind=R8P)inoptionalSpoke step [deg], 0 for the rectangular grid.
spiderlogicalinoptionalSpider plot web.
lineslogicalinoptionalLines at the x, y, x2, y2 major and x, y minor ticks (gnuplot set grid x y x2 y2 mx my); none: x and y.
frontlogicalinoptionalOver the data (gnuplot front), else behind.
lccharacter(len=*)inoptionalLine color, empty for the theme's.
lwreal(kind=R8P)inoptionalLine width [px].
dtinteger(kind=I4P)inoptionalDash type, 0 for foresight's dots, 1 solid.

Call graph

set_key ​

Draw the key (on absent or true), as gnuplot set key, or not; position takes gnuplot's words, e.g. 'bottom left', 'center' (inside the plot area, top right by default), 'outside', 'below', 'above', 'lmargin', 'tmargin left', 'horizontal'; box draws a box around it. at places it at a position (gnuplot set key at), its box aligned there by the position words as a text ('left bottom': its bottom left corner), in the coordinates of system: one or two words of first (the default: the x and y values), second (x2, y2), graph (fractions of the plot area), screen (fractions of the page), for x then y. inside, outside, the margins, below and above cancel at.

fortran
subroutine set_key(self, on, position, box, at, system)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
onlogicalinoptionalKey on.
positioncharacter(len=*)inoptionalPosition words: left, right, center, top, bottom.
boxlogicalinoptionalBox around the key.
atreal(kind=R8P)inoptionalPosition of the key.
systemcharacter(len=*)inoptionalCoordinate systems of at, x then y.

Call graph

set_logscale ​

Base-10 log scale on the axes named x, y, y2, cb (the color axis of the images); all axes when absent, as gnuplot.

fortran
subroutine set_logscale(self, axes)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
axescharacter(len=*)inoptionalAxes names, e.g. y, xy or y2.

Call graph

set_multiplot ​

Lay out a rows x cols grid of panels, filled row by row starting from the first; every panel starts from the settings of the current one, without its series. Without rows and cols, a manual multiplot: each panel lies in its set_origin/set_size box, as gnuplot set multiplot without layout.

fortran
subroutine set_multiplot(self, rows, cols, title)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
rowsinteger(kind=I4P)inoptionalGrid rows.
colsinteger(kind=I4P)inoptionalGrid columns.
titlecharacter(len=*)inoptionalMultiplot title.

Call graph

set_origin ​

Bottom left corner of the plot as page fractions, as gnuplot set origin x,y: for a single plot and the panels of a multiplot; in a layout the panel leaves its cell for its own box (its size the cell's unless set), as gnuplot, until the next panel.

fortran
subroutine set_origin(self, x, y)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
xreal(kind=R8P)inLeft side, page width fraction.
yreal(kind=R8P)inBottom side, page height fraction.

Call graph

own_box ​

The current panel of a multiplot layout leaves its grid cell for its own origin, size box (gnuplot's set origin, set size override the layout until the next plot), starting from its cell (page fractions from the bottom left, below no title band).

fortran
subroutine own_box(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.

Call graph

set_text ​

Text output (.txt, -): charset dumb (default), drawing with characters, or the gnuplot block character set half, quadrants, sextants, braille; colors mono (default), ansi, ansi256 or ansirgb, the series in ANSI colors. Absent arguments keep their setting.

fortran
subroutine set_text(self, charset, colors)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
charsetcharacter(len=*)inoptionalCharacter set.
colorscharacter(len=*)inoptionalColor mode.

Call graph

set_polar ​

Polar coordinates (on absent or true), as gnuplot set polar: the series of the panel are theta:r (theta in set_angles units, from the set_theta origin), drawn at x = (r - rmin) cos(theta), y = (r - rmin) sin(theta) joined by straight segments; x and y autoscale to the disc of the largest r. The frame stays rectangular, as gnuplot: a round plot sets the polar border, the polar grid, the square size and turns the x and y ticks off.

fortran
subroutine set_polar(self, on)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
onlogicalinoptionalPolar on.

Call graph

set_raxis ​

Draw the radial axis of a polar panel (on absent or true; the default), as gnuplot set raxis, or not.

fortran
subroutine set_raxis(self, on)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
onlogicalinoptionalAxis on.

Call graph

set_readout ​

Draw the readouts (on absent or true) or not; position takes the set key words inside the plot area (left, right, center, top, bottom; top left by default) and horizontal or vertical (the default) for a row or a column of readouts; opaque draws a window behind them (default true); size is the digit height [px], 0 for the default (2.5 font sizes, growing to fill a panel of readouts alone).

fortran
subroutine set_readout(self, on, position, opaque, size)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
onlogicalinoptionalReadouts on.
positioncharacter(len=*)inoptionalPosition words.
opaquelogicalinoptionalWindow behind the readouts.
sizereal(kind=R8P)inoptionalDigit height [px].

Call graph

set_refresh ​

Make the HTML page reload itself every seconds (0 disables): live view of a file rewritten by a running job.

The zoom survives the reload, being kept in the page URL as data values.

Attributes: pure

fortran
subroutine set_refresh(self, seconds)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
secondsinteger(kind=I4P)inReload period [s].

Call graph

set_rrange ​

r range of a polar panel, as gnuplot set rrange [min:max]: min lies at the pole (0 when absent), the points below it are undefined; an absent max autoscales to the largest |r|, extended to the r ticks.

fortran
subroutine set_rrange(self, min, max)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
minreal(kind=R8P)inoptionalr at the pole.
maxreal(kind=R8P)inoptionalLargest r.

Call graph

set_rtics ​

r ticks of a polar panel every step from start to end, automatic without step (the default), as gnuplot set rtics; on false turns them off (unset rtics).

fortran
subroutine set_rtics(self, step, start, end, on)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
stepreal(kind=R8P)inoptionalTick step.
startreal(kind=R8P)inoptionalFirst tick.
endreal(kind=R8P)inoptionalLast tick.
onlogicalinoptionalTicks on.

Call graph

set_size ​

Size of the plot as page fractions, as gnuplot set size w,h: for a single plot and the panels of a multiplot; in a layout the panel leaves its cell for its own box (at the cell's origin unless set), as gnuplot, until the next panel. ratio > 0 fixes the plot area height over width (gnuplot set size ratio R, square is 1), 0 frees it (noratio); a negative ratio -R makes a y unit R times an x unit long (gnuplot set size ratio -1: equal units, the plot area shrunk to the ranges).

fortran
subroutine set_size(self, width, height, ratio)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
widthreal(kind=R8P)inoptionalWidth, page width fraction, > 0.
heightreal(kind=R8P)inoptionalHeight, page height fraction, > 0.
ratioreal(kind=R8P)inoptionalPlot area height over width, 0 for none.

Call graph

set_theme ​

Output theme (a foresight extension): name classic (the default), vfd (a vacuum fluorescent display: black glass, emissive colors, glowing data), lcd (a backlit liquid crystal display), washi or night (foresight's identity, light and dark: see foresight_theme), paper (a figure for a paper: 8 pt texts, the Okabe-Ito colors; serif sets them in Latin Modern Roman); glow overrides the theme's glow (on in vfd). Text output takes the theme colors of the series only (ansi colors).

fortran
subroutine set_theme(self, name, glow, serif)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
namecharacter(len=*)inoptionalTheme name.
glowlogicalinoptionalGlowing data.
seriflogicalinoptionalThe paper theme's texts in Latin Modern Roman.

Call graph

set_theta ​

Where theta = 0 lies on a polar panel, right (the default), top, left or bottom, and whether theta grows clockwise (default counterclockwise), as gnuplot set theta.

fortran
subroutine set_theta(self, origin, clockwise)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
origincharacter(len=*)inoptionalDirection of theta = 0.
clockwiselogicalinoptionalTheta grows clockwise.

Call graph

set_key_style ​

Key layout of the current panel, as gnuplot set key: reverse the samples left of the titles, left the titles left-justified (Left), invert the entries in reverse order, opaque the key area painted over the plot, samplen the sample length [character widths; negative: foresight's], width character widths added to the titles, title a row above the entries (empty: none), offset a shift [characters, y up], title_justify the title's justification (left, center or right, as gnuplot set key title "T" left). Apart from set_key: nvfortran 26.9 -O2 loses present(at) there with these optional arguments after it.

fortran
subroutine set_key_style(self, reverse, left, invert, opaque, samplen, width, title, offset, title_justify)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
reverselogicalinoptionalSamples left of the titles.
leftlogicalinoptionalTitles left-justified.
invertlogicalinoptionalEntries in reverse order.
opaquelogicalinoptionalThe key area painted over the plot.
samplenreal(kind=R8P)inoptionalSample length [character widths].
widthreal(kind=R8P)inoptionalWidth added to the titles [character widths].
titlecharacter(len=*)inoptionalKey title.
offsetreal(kind=R8P)inoptionalKey shift [characters].
title_justifycharacter(len=*)inoptionalKey title justification.

Call graph

set_enhanced ​

Read the titles, labels and key entries as gnuplot's enhanced text (x^2, T_{n-1}, {/Symbol a}; see foresight_enhanced), as gnuplot set termoption enhanced, or as they are.

fortran
subroutine set_enhanced(self, on)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
onlogicalinoptionalEnhanced, true if absent.

Call graph

set_fontglyphs ​

Texts drawn from the compiled-in glyphs, so that they look the same on every machine, or by font name, as gnuplot's svg terminal (set terminal svg fontglyphs|fontnames): svg for the SVG files (by name if absent: the reader's fonts), pdf for the PDF ones (embedded if absent; by name, the 14 standard fonts). The HTML pages keep their texts by name (the viewer redraws them).

fortran
subroutine set_fontglyphs(self, svg, pdf)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
svglogicalinoptionalSVG texts from the glyphs.
pdflogicalinoptionalPDF texts embedded.

Call graph

set_page_size ​

The page width x height in units: px (the default), in, cm or pt (96 px to the inch, as a PDF page's 0.75 pt per pixel), as gnuplot's set terminal pdfcairo size 8.5cm,6cm.

fortran
subroutine set_page_size(self, width, height, units)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
widthreal(kind=R8P)inWidth.
heightreal(kind=R8P)inHeight.
unitscharacter(len=*)inoptionalUnits.

Call graph

set_font ​

The page font from gnuplot's spec "family:Bold:Italic,size" (foresight_font font_of), its size in points (as gnuplot's cairo terminals), times fontscale (1 if absent): set terminal pdfcairo font "Sans,12" fontscale 0.5. An absent size keeps the page's; the family (serif for Latin Modern) names the page's family.

fortran
subroutine set_font(self, spec, fontscale)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
speccharacter(len=*)inFont spec.
fontscalereal(kind=R8P)inoptionalSize factor.

Call graph

set_pdf ​

The PDF's lines, as gnuplot's pdfcairo terminal options: every width times linewidth (foresight's lines are 1 px, 0.75 pt), every dash times dashlength, the caps butt (miter joins, the default), rounded (round caps and joins) or square; mono lines and texts black, fills gray; background the page color (any device).

fortran
subroutine set_pdf(self, linewidth, dashlength, cap, mono, background)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
linewidthreal(kind=R8P)inoptionalLine width factor.
dashlengthreal(kind=R8P)inoptionalDash length factor.
capcharacter(len=*)inoptionalbutt, rounded or square.
monologicalinoptionalMonochrome.
backgroundcharacter(len=*)inoptionalPage color.

Call graph

set_cairolatex ​

The LaTeX picture of save('NAME.tex'), as gnuplot's cairolatex terminal options: standalone a whole document (its graphics NAME-inc.pdf), else one for \input (NAME.pdf); colortext the texts in their colors (gnuplot's colortext, else blacktext); header LaTeX code (the preamble's end when standalone, else the picture's start); font gnuplot's LaTeX font name family,series,shape; size the standalone document's font size [pt].

fortran
subroutine set_cairolatex(self, standalone, colortext, header, font, size)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
standalonelogicalinoptionalA whole document.
colortextlogicalinoptionalTexts in color.
headercharacter(len=*)inoptionalLaTeX code.
fontcharacter(len=*)inoptionalLaTeX font name.
sizereal(kind=R8P)inoptionalFont size [pt].

Call graph

set_margin ​

Set a margin of the current panel, as gnuplot set lmargin|rmargin|tmargin|bmargin: side is l, r, t or b; value characters (0.6 font sizes wide, 1 high), or with screen the border at that fraction of the page (from the bottom left); a negative value (or none) lets it be computed.

fortran
subroutine set_margin(self, side, value, screen)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
sidecharacter(len=1)inl, r, t or b.
valuereal(kind=R8P)inoptionalMargin.
screenlogicalinoptionalAt a page fraction.

Call graph

set_title ​

Set the title of the current panel, empty for none, shifted by offset characters (x right, y up; gnuplot set title offset).

fortran
subroutine set_title(self, title, offset)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
titlecharacter(len=*)inTitle.
offsetreal(kind=R8P)inoptionalShift [characters].

Call graph

set_trange ​

Angle range the script functions of a polar panel are sampled over, as gnuplot set trange [min:max] (in set_angles units; a full turn from 0 when absent). A set end also leaves out the data points beyond it, as gnuplot 6.0.

fortran
subroutine set_trange(self, min, max)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
minreal(kind=R8P)inoptionalFirst angle.
maxreal(kind=R8P)inoptionalLast angle.

Call graph

set_ttics ​

Theta labels of a polar panel outside its largest r, every step degrees from start (0), whatever the angle unit, as gnuplot set ttics START,STEP; every 45 degrees without step (gnuplot draws none); format the label format; on false turns them off (the default, unset ttics).

fortran
subroutine set_ttics(self, step, start, format, on)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
stepreal(kind=R8P)inoptionalLabel step [deg].
startreal(kind=R8P)inoptionalFirst label [deg].
formatcharacter(len=*)inoptionalLabel format.
onlogicalinoptionalLabels on.

Call graph

splot_points ​

Add the points (x, y, z) to the current panel, made a 3D panel, as gnuplot splot ... using 1:2:3: one scan of scattered points, in the style with (points by default) and the line options of plot; palette colors them by their height (gnuplot lc palette). with='zerrorfill': the line through the points and the band from zlow to zhigh filled below it (gnuplot splot ... using 1:2:3:4:5 with zerrorfill); with='boxes': 3D boxes from the base plane (their width set_boxwidth, their depth set_boxdepth); with='polygons': the points the vertices of one polygon; fs the fill style words of these. zerrorfill's colors are gnuplot's: the band in the line color lc and the line in the fill's border color (black by default).

fortran
subroutine splot_points(self, x, y, z, title, with, lc, lw, dt, ps, pt, palette, zlow, zhigh, fs)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
xreal(kind=R8P)inAbscissae.
yreal(kind=R8P)inOrdinates.
zreal(kind=R8P)inHeights.
titlecharacter(len=*)inoptionalKey title.
withcharacter(len=*)inoptionalStyle, points if absent.
lccharacter(len=*)inoptionalLine color.
lwreal(kind=R8P)inoptionalLine width [px].
dtinteger(kind=I4P)inoptionalDash type.
psreal(kind=R8P)inoptionalPoint size.
ptinteger(kind=I4P)inoptionalPoint type.
palettelogicalinoptionalColored by height through the palette.
zlowreal(kind=R8P)inoptionalLower ends of the z errors (zerrorfill).
zhighreal(kind=R8P)inoptionalUpper ends of the z errors (zerrorfill).
fscharacter(len=*)inoptionalFill style words.

Call graph

splot_grid ​

Add the surface z(i, j) at (x(i), y(j)) to the current panel, made a 3D panel, as gnuplot splot of a grid: a scan per y(j) (gnuplot's iso-curves), in the style with (lines by default; image its pixels, the grid evenly spaced; pm3d colored quadrangles; contourfill the quadrangles cut into the slices of set_contourfill, each in one color) and the line options of plot; palette colors the points by height.

fortran
subroutine splot_grid(self, x, y, z, title, with, lc, lw, dt, ps, pt, palette)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
xreal(kind=R8P)inAbscissae of the columns.
yreal(kind=R8P)inOrdinates of the rows.
zreal(kind=R8P)inHeights (column, row).
titlecharacter(len=*)inoptionalKey title.
withcharacter(len=*)inoptionalStyle, lines if absent.
lccharacter(len=*)inoptionalLine color.
lwreal(kind=R8P)inoptionalLine width [px].
dtinteger(kind=I4P)inoptionalDash type.
psreal(kind=R8P)inoptionalPoint size.
ptinteger(kind=I4P)inoptionalPoint type.
palettelogicalinoptionalColored by height through the palette.

Call graph

heights_of_last ​

The heights z and the scans of the last series of the current panel, made a 3D panel.

fortran
subroutine heights_of_last(self, z, scans)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
zreal(kind=R8P)inHeights.
scansinteger(kind=I4P)inFirst and last point of each scan.

Call graph

set_contour ​

The contour lines of the 3D surfaces, gnuplot set contour PLACE (on, place base, surface, both), set cntrparam: kind linear, cubicspline, bspline; levels N (automatic, about N), discrete the levels, incremental start, step[, end]; points per spline interval, B-spline order, firstlinetype, sorted; set cntrlabel: the label format ("%8.3g"), onecolor.

fortran
subroutine set_contour(self, on, place, kind, levels, discrete, incremental, points, order, firstlinetype, sorted, format, onecolor)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
onlogicalinoptionalContours drawn.
placecharacter(len=*)inoptionalbase, surface or both.
kindcharacter(len=*)inoptionallinear, cubicspline or bspline.
levelsinteger(kind=I4P)inoptionalAbout N automatic levels.
discretereal(kind=R8P)inoptionalThe levels.
incrementalreal(kind=R8P)inoptionalStart, step[, end].
pointsinteger(kind=I4P)inoptionalPoints per spline interval.
orderinteger(kind=I4P)inoptionalB-spline order, 2 to 10.
firstlinetypeinteger(kind=I4P)inoptionalLinetype of the first level.
sortedlogicalinoptionalLevels high to low.
formatcharacter(len=*)inoptionalLabel format.
onecolorlogicalinoptionalAll levels in the surface's color.

Call graph

set_dgrid3d ​

gnuplot set dgrid3d: the scattered points of splot gridded (on), rows points along y of cols iso-curves of x (10, 10), each node a weighted mean of the points by mode: qnorm (inverse distance to the power norm, 1), splines (thin plate splines), or a kernel of the distance scaled by scale (dx, dy; 1, 1) gauss, cauchy, exp, box, hann; kdensity the kernel's weighted sums, a density.

fortran
subroutine set_dgrid3d(self, on, rows, cols, mode, norm, scale, kdensity)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
onlogicalinoptionalData gridded.
rowsinteger(kind=I4P)inoptionalPoints along y of each iso-curve.
colsinteger(kind=I4P)inoptionalIso-curves of x.
modecharacter(len=*)inoptionalWeighting.
norminteger(kind=I4P)inoptionalThe power of qnorm.
scalereal(kind=R8P)inoptionalKernel scales along x and y.
kdensitylogicalinoptionalKernel sums (a density), not means.

Call graph

set_pm3d ​

gnuplot set pm3d: implicit every surface drawn as colored quadrangles too (set pm3d; false: only the items with='pm3d', unset pm3d), interpolate the steps along and between the scans (interpolate N,M, 0 or negative for gnuplot's automatic counts), corners2color the color of a quadrangle from its corners (mean, geomean, harmean, rms, median, min, max, c1 to c4), clip4in its 4 corners in range. In 3D views: at where (b the base, s the surface, t the top, combined in drawing order, e.g. 'bs'), order the drawing order (scansautomatic, scansforward, scansbackward, depthorder), border the quadrangles outlined in black; clip 'z' (gnuplot's clip z, the default: the quadrangles cut at the z range), '1in' (clip1in: one corner in range is enough) or '4in' (clip4in); lighting gnuplot's set pm3d lighting (false: nolighting), its primary light (0.5), specular highlights (0.2) and spec2 the spotlight's share (0, see set_spotlight), each between 0 and 1.

fortran
subroutine set_pm3d(self, implicit, interpolate, corners2color, clip4in, at, order, border, clip, lighting, primary, specular, spec2)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
implicitlogicalinoptionalEvery surface drawn with pm3d.
interpolateinteger(kind=I4P)inoptionalInterpolation steps.
corners2colorcharacter(len=*)inoptionalColor of a quadrangle from its corners.
clip4inlogicalinoptionalIts 4 corners in range.
atcharacter(len=*)inoptionalWhere: b, s, t combined.
ordercharacter(len=*)inoptionalDrawing order in 3D views.
borderlogicalinoptionalOutlined quadrangles.
clipcharacter(len=*)inoptionalz, 1in or 4in.
lightinglogicalinoptionalLit quadrangles.
primaryreal(kind=R8P)inoptionalShare of the primary light.
specularreal(kind=R8P)inoptionalShare of the specular highlights.
spec2real(kind=R8P)inoptionalShare of the spotlight.

Call graph

set_spotlight ​

The spotlight of pm3d's lighting, gnuplot set pm3d spotlight [rot_x A] [rot_z B] [rgbcolor C] [Phong P] [default]: its direction (rot_x, rot_z [deg], 50 and 90), its color ('#rrggbb', gnuplot's '#ff0044'), its Phong exponent phong (4); default those back first. Its share of the light is set_pm3d(spec2=).

fortran
subroutine set_spotlight(self, rot_x, rot_z, color, phong, default)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
rot_xreal(kind=R8P)inoptionalRotation about x [deg].
rot_zreal(kind=R8P)inoptionalRotation about z [deg].
colorcharacter(len=*)inoptionalColor, '#rrggbb'.
phongreal(kind=R8P)inoptionalPhong exponent.
defaultlogicalinoptionalgnuplot's spotlight first.

Call graph

set_contourfill ​

The slices of splot(..., with='contourfill'), gnuplot set contourfill: levels N slices evenly over the z range (auto N, 5 by default), or bounded by the major ztics or cbtics; each slice colored by the palette at its middle (palette, the default), or in the linetypes from firstlinetype.

fortran
subroutine set_contourfill(self, levels, ztics, cbtics, firstlinetype, palette)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
levelsinteger(kind=I4P)inoptionalSlices.
zticslogicalinoptionalBounded by the z ticks.
cbticslogicalinoptionalBounded by the cb ticks.
firstlinetypeinteger(kind=I4P)inoptionalLinetype of the first slice.
palettelogicalinoptionalColored by the palette.

Call graph

set_wall ​

A grid wall of the 3D views, gnuplot set wall y0|x0|y1|x1|z0 (the planes y = 0, x = 0, y = 1, x = 1, z = 0 of the graph) or, without which, set walls (y0, x0 and z0): filled half transparent in gnuplot's colors (the y walls '#cdb79e', the x ones '#228b22', z '#a0b6cd') and bordered black, drawn behind or in front of the plot as they face; fc the fill color, fs the fill style words ('solid 0.3 noborder'), lw the border width; on false removes it (every wall without which, unset walls).

fortran
subroutine set_wall(self, which, on, fc, fs, lw)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
whichcharacter(len=*)inoptionaly0, x0, y1, x1 or z0.
onlogicalinoptionalDrawn.
fccharacter(len=*)inoptionalFill color.
fscharacter(len=*)inoptionalFill style words.
lwreal(kind=R8P)inoptionalBorder width [px].

Call graph

set_boxdepth ​

The depth along y of the 3D boxes (splot(..., with='boxes')), gnuplot set boxdepth D (y autoscaled over y +- D), set boxdepth square (square: as deep as wide on the page); 0 or none: flat boxes (unset boxdepth).

fortran
subroutine set_boxdepth(self, depth, square)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
depthreal(kind=R8P)inoptionalDepth (y axis values).
squarelogicalinoptionalAs deep as wide on the page.

Call graph

set_view ​

The view of the 3D panels, as gnuplot set view ROT_X, ROT_Z, SCALE, SCALE_Z (each kept if absent) or set view map [scale S] (map true; false back to the 3D view); equal 0 none, 1 equal xy, 2 equal xyz; azimuth a rotation about the line of sight (set view azimuth A); projection xy (the map), xz or yz (set view projection: the plane seen edge-on, gnuplot's fixed rotations, the line of sight turned by -90 degrees, the base plane at the bottom of the z range and the z tick labels centred; the yz plane with the z axis reversed). The rotations or the map end a projection.

fortran
subroutine set_view(self, map, rot_x, rot_z, scale, zscale, map_scale, equal, azimuth, projection)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
maplogicalinoptionalSeen from above, as a map.
rot_xreal(kind=R8P)inoptionalRotation about x [deg].
rot_zreal(kind=R8P)inoptionalRotation about z [deg].
scalereal(kind=R8P)inoptionalScale.
zscalereal(kind=R8P)inoptionalScale of z.
map_scalereal(kind=R8P)inoptionalScale of the map view.
equalinteger(kind=I4P)inoptionalEqual axes.
azimuthreal(kind=R8P)inoptionalRotation about the line of sight [deg].
projectioncharacter(len=*)inoptionalxy, xz or yz.

Call graph

set_hidden3d ​

Hidden lines of the 3D views, as gnuplot set hidden3d [offset N] (on false: unset hidden3d): the grid surfaces drawn opaque, their underside in the linetype offset (1) after their own; for the surfaces added after.

fortran
subroutine set_hidden3d(self, on, offset)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
onlogicalinoptionalHidden lines removed.
offsetinteger(kind=I4P)inoptionalLinetype offset of the underside (0 the same).

Call graph

set_xyplane ​

The base plane of the 3D views: at the height at (gnuplot set xyplane at Z), or below the z range by the fraction relative of it (set xyplane relative F, set ticslevel F; 0.5 by default).

fortran
subroutine set_xyplane(self, at, relative)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
atreal(kind=R8P)inoptionalHeight.
relativereal(kind=R8P)inoptionalFraction of the z range.

Call graph

set_zlabel ​

Set the z axis label of the current panel (a 3D one), empty for none.

fortran
subroutine set_zlabel(self, label)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
labelcharacter(len=*)inLabel.

Call graph

set_zrange ​

Set the z range as gnuplot set zrange [min:max]: an absent end is autoscaled.

fortran
subroutine set_zrange(self, min, max)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
minreal(kind=R8P)inoptionalValue at the axis start.
maxreal(kind=R8P)inoptionalValue at the axis end.

Call graph

set_ztics ​

z ticks every step from start to end (both optional), as gnuplot set ztics START,STEP,END; automatic without step; positions, labels, minor and add an explicit list, as set_xtics.

fortran
subroutine set_ztics(self, step, start, end, positions, labels, minor, add)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
stepreal(kind=R8P)inoptionalTick step.
startreal(kind=R8P)inoptionalFirst tick.
endreal(kind=R8P)inoptionalLast tick.
positionsreal(kind=R8P)inoptionalExplicit list positions.
labelscharacter(len=*)inoptionalExplicit list labels.
minorlogicalinoptionalExplicit list minor ticks.
addlogicalinoptionalAdd the list to the ticks.

Call graph

set_xlabel ​

Set the x axis label of the current panel, empty for none.

fortran
subroutine set_xlabel(self, label)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
labelcharacter(len=*)inLabel.

Call graph

set_xrange ​

Set the x range as gnuplot set xrange [min:max]: an absent end is autoscaled, min > max reverses the axis.

fortran
subroutine set_xrange(self, min, max)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
minreal(kind=R8P)inoptionalValue at the axis start.
maxreal(kind=R8P)inoptionalValue at the axis end.

Call graph

set_cbtics ​

Ticks of the color box every step from start to end (both optional), as gnuplot set cbtics START,STEP,END; automatic without step. On a log color axis the step is a factor (> 1). positions is an explicit list, labelled by labels (as written, or a format with a conversion; the axis labels without them), minor marking minor ticks; add adds it to the ticks instead of replacing them, as gnuplot set cbtics [add] ("label" pos level, ...).

fortran
subroutine set_cbtics(self, step, start, end, positions, labels, minor, add)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
stepreal(kind=R8P)inoptionalTick step, a factor on a log axis.
startreal(kind=R8P)inoptionalFirst tick.
endreal(kind=R8P)inoptionalLast tick.
positionsreal(kind=R8P)inoptionalExplicit list positions, gnuplot ("label" pos, ...).
labelscharacter(len=*)inoptionalExplicit list labels (a format if with a conversion).
minorlogicalinoptionalExplicit list minor ticks (gnuplot level 1).
addlogicalinoptionalAdd the list to the ticks (gnuplot add).

Call graph

unset_cbtics ​

No ticks nor tick labels on the color box, as gnuplot unset cbtics (the box and its label stay).

fortran
subroutine unset_cbtics(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.

Call graph

set_xtics ​

x ticks every step from start to end (both optional), as gnuplot set xtics START,STEP,END; automatic without step. On a log axis the step is a factor (> 1): ticks at start * step**k. mirror false draws them on the bottom border only (gnuplot nomirror). positions is an explicit list, labelled by labels (as written, or a format with a conversion; the axis labels without them), minor marking minor ticks; add adds it to the ticks instead of replacing them, as gnuplot set xtics [add] ("label" pos level, ...). rotate turns the labels [deg, counterclockwise], left-justified unless justify (gnuplot rotate by A; rotate is 90 with justify='right'); out points the ticks outward. Alone they keep the tick positions.

fortran
subroutine set_xtics(self, step, start, end, mirror, positions, labels, minor, add, rotate, justify, out)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
stepreal(kind=R8P)inoptionalTick step, a factor on log axes.
startreal(kind=R8P)inoptionalFirst tick.
endreal(kind=R8P)inoptionalLast tick.
mirrorlogicalinoptionalTicks also on the top border.
positionsreal(kind=R8P)inoptionalExplicit list positions, gnuplot ("label" pos, ...).
labelscharacter(len=*)inoptionalExplicit list labels (a format if with a conversion).
minorlogicalinoptionalExplicit list minor ticks (gnuplot level 1).
addlogicalinoptionalAdd the list to the ticks (gnuplot add).
rotatereal(kind=R8P)inoptionalLabel angle [deg, counterclockwise], gnuplot rotate by.
justifycharacter(len=*)inoptionalRotated label justification: left, right, center.
outlogicalinoptionalTicks outward, gnuplot out.

Call graph

set_mxtics ​

Minor x ticks, as gnuplot set mxtics [N]: intervals between consecutive major ticks of the automatic or fixed ticks (linearly in value on a log axis), gnuplot's count without it (2 or 5 by the step, 9 on log axes); 0 or 1 for none, as unset mxtics. With a time unit (seconds, minutes, hours, days, weeks, months, years), a minor tick every intervals units of a time axis, as gnuplot 6.0's set mxtics time N UNITS.

fortran
subroutine set_mxtics(self, intervals, unit)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
intervalsinteger(kind=I4P)inoptionalIntervals between major ticks, or time units.
unitcharacter(len=*)inoptionalTime unit.

Call graph

set_errorbars ​

The error bars and boxplot whiskers, as gnuplot set errorbars [SIZE] [lc C] [lw W]: the cap length size (1 the default, 0 none, as small), the line color and width of the error bars (their series' if absent).

fortran
subroutine set_errorbars(self, size, lc, lw)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
sizereal(kind=R8P)inoptionalCap length, in units of the default.
lccharacter(len=*)inoptionalError bar color.
lwreal(kind=R8P)inoptionalError bar width [px].

Call graph

set_mytics ​

Minor y ticks, as gnuplot set mytics [N]: intervals between consecutive major ticks of the automatic or fixed ticks (linearly in value on a log axis), gnuplot's count without it (2 or 5 by the step, 9 on log axes); 0 or 1 for none, as unset mytics.

fortran
subroutine set_mytics(self, intervals)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
intervalsinteger(kind=I4P)inoptionalIntervals between major ticks.

Call graph

set_my2tics ​

Minor second y ticks, as gnuplot set my2tics [N]: intervals between consecutive major ticks of the automatic or fixed ticks (linearly in value on a log axis), gnuplot's count without it (2 or 5 by the step, 9 on log axes); 0 or 1 for none, as unset my2tics.

fortran
subroutine set_my2tics(self, intervals)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
intervalsinteger(kind=I4P)inoptionalIntervals between major ticks.

Call graph

set_mx2tics ​

Minor second x ticks, as gnuplot set mx2tics [N]: intervals between consecutive major ticks of the automatic or fixed ticks (linearly in value on a log axis), gnuplot's count without it (2 or 5 by the step, 9 on log axes); 0 or 1 for none, as unset mx2tics.

fortran
subroutine set_mx2tics(self, intervals)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
intervalsinteger(kind=I4P)inoptionalIntervals between major ticks.

Call graph

set_mcbtics ​

Minor color box ticks, as gnuplot set mcbtics [N]: intervals between consecutive major ticks of the automatic or fixed ticks (linearly in value on a log axis), gnuplot's count without it (2 or 5 by the step, 9 on log axes); 0 or 1 for none, as unset mcbtics.

fortran
subroutine set_mcbtics(self, intervals)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
intervalsinteger(kind=I4P)inoptionalIntervals between major ticks.

Call graph

set_ylabel ​

Set the y axis label of the current panel, empty for none.

fortran
subroutine set_ylabel(self, label)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
labelcharacter(len=*)inLabel.

Call graph

set_yrange ​

Set the y range as gnuplot set yrange [min:max]: an absent end is autoscaled, min > max reverses the axis.

fortran
subroutine set_yrange(self, min, max)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
minreal(kind=R8P)inoptionalValue at the axis start.
maxreal(kind=R8P)inoptionalValue at the axis end.

Call graph

set_ytics ​

y ticks every step from start to end (both optional), as gnuplot set ytics START,STEP,END; automatic without step. On a log axis the step is a factor (> 1): ticks at start * step**k. mirror false draws them on the left border only (gnuplot nomirror), leaving the right one to the second y axis. positions is an explicit list, labelled by labels (as written, or a format with a conversion; the axis labels without them), minor marking minor ticks; add adds it to the ticks instead of replacing them, as gnuplot set ytics [add] ("label" pos level, ...). out points the ticks outward (gnuplot out); rotate turns the labels [deg, counterclockwise] from their tick, reading away from the plot, left-justified unless justify (gnuplot rotate by A; rotate is 90); alone they keep the tick positions.

fortran
subroutine set_ytics(self, step, start, end, mirror, positions, labels, minor, add, out)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
stepreal(kind=R8P)inoptionalTick step, a factor on log axes.
startreal(kind=R8P)inoptionalFirst tick.
endreal(kind=R8P)inoptionalLast tick.
mirrorlogicalinoptionalTicks also on the right border.
positionsreal(kind=R8P)inoptionalExplicit list positions, gnuplot ("label" pos, ...).
labelscharacter(len=*)inoptionalExplicit list labels (a format if with a conversion).
minorlogicalinoptionalExplicit list minor ticks (gnuplot level 1).
addlogicalinoptionalAdd the list to the ticks (gnuplot add).
outlogicalinoptionalTicks outward, gnuplot out.

Call graph

set_y2label ​

Set the second y axis label of the current panel, on the right, empty for none.

fortran
subroutine set_y2label(self, label)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
labelcharacter(len=*)inLabel.

Call graph

set_y2range ​

Set the second y axis range as gnuplot set y2range [min:max]: an absent end is autoscaled on the x1y2 series.

fortran
subroutine set_y2range(self, min, max)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
minreal(kind=R8P)inoptionalValue at the axis start.
maxreal(kind=R8P)inoptionalValue at the axis end.

Call graph

set_y2tics ​

Ticks and labels of the second y axis on the right border, as gnuplot set y2tics START,STEP,END (automatic without step); off by default, as in gnuplot. mirror true draws the ticks on the left border too. positions is an explicit list, labelled by labels (as written, or a format with a conversion; the axis labels without them), minor marking minor ticks; add adds it to the ticks instead of replacing them, as gnuplot set y2tics [add] ("label" pos level, ...). out points the ticks outward (gnuplot out); alone it keeps the tick positions.

fortran
subroutine set_y2tics(self, step, start, end, mirror, positions, labels, minor, add, out)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
stepreal(kind=R8P)inoptionalTick step, a factor on log axes.
startreal(kind=R8P)inoptionalFirst tick.
endreal(kind=R8P)inoptionalLast tick.
mirrorlogicalinoptionalTicks also on the left border.
positionsreal(kind=R8P)inoptionalExplicit list positions, gnuplot ("label" pos, ...).
labelscharacter(len=*)inoptionalExplicit list labels (a format if with a conversion).
minorlogicalinoptionalExplicit list minor ticks (gnuplot level 1).
addlogicalinoptionalAdd the list to the ticks (gnuplot add).
outlogicalinoptionalTicks outward, gnuplot out.

Call graph

set_x2label ​

Set the second x axis label of the current panel, on the top, empty for none.

fortran
subroutine set_x2label(self, label)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
labelcharacter(len=*)inLabel.

Call graph

set_x2range ​

Set the second x axis range as gnuplot set x2range [min:max]: an absent end is autoscaled on the x2y1 and x2y2 series (the range of the first x axis without them).

fortran
subroutine set_x2range(self, min, max)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
minreal(kind=R8P)inoptionalValue at the axis start.
maxreal(kind=R8P)inoptionalValue at the axis end.

Call graph

set_x2tics ​

Ticks and labels of the second x axis on the top border, as gnuplot set x2tics START,STEP,END (automatic without step); off by default, as in gnuplot. Without series of its own the axis spans the first x axis range. mirror true draws the ticks on the bottom border too. positions is an explicit list, labelled by labels (as written, or a format with a conversion; the axis labels without them), minor marking minor ticks; add adds it to the ticks instead of replacing them, as gnuplot set x2tics [add] ("label" pos level, ...). out points the ticks outward (gnuplot out); alone it keeps the tick positions.

fortran
subroutine set_x2tics(self, step, start, end, mirror, positions, labels, minor, add, out, rotate, justify)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
stepreal(kind=R8P)inoptionalTick step, a factor on log axes.
startreal(kind=R8P)inoptionalFirst tick.
endreal(kind=R8P)inoptionalLast tick.
mirrorlogicalinoptionalTicks also on the bottom border.
positionsreal(kind=R8P)inoptionalExplicit list positions, gnuplot ("label" pos, ...).
labelscharacter(len=*)inoptionalExplicit list labels (a format if with a conversion).
minorlogicalinoptionalExplicit list minor ticks (gnuplot level 1).
addlogicalinoptionalAdd the list to the ticks (gnuplot add).
outlogicalinoptionalTicks outward, gnuplot out.
rotatereal(kind=R8P)inoptionalLabel angle [deg, counterclockwise], gnuplot rotate by.
justifycharacter(len=*)inoptionalRotated label justification: left, right, center.

Call graph

unset_logscale ​

Linear scale on the axes named x, y, y2, cb; all axes when absent, as gnuplot.

fortran
subroutine unset_logscale(self, axes)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
axescharacter(len=*)inoptionalAxes names, e.g. y, xy or y2.

Call graph

unset_multiplot ​

Back to a single panel, keeping the settings of the current one without its series.

fortran
subroutine unset_multiplot(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.

Call graph

unset_xtics ​

No x ticks, tick labels nor grid lines, as gnuplot unset xtics; autoscaled ends are then not extended.

fortran
subroutine unset_xtics(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.

Call graph

unset_ytics ​

No y ticks, tick labels nor grid lines, as gnuplot unset ytics; autoscaled ends are then not extended.

fortran
subroutine unset_ytics(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.

Call graph

unset_y2tics ​

No second y axis ticks nor tick labels, the default, as gnuplot unset y2tics.

fortran
subroutine unset_y2tics(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.

Call graph

unset_x2tics ​

No second x axis ticks nor tick labels, the default, as gnuplot unset x2tics.

fortran
subroutine unset_x2tics(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.

Call graph

environment_theme ​

The theme named by the environment variable FORESIGHT_THEME (see foresight_theme), as gnuplot's GNUTERM names a default terminal: for a fresh figure, unless a theme was set; an unknown name is ignored.

fortran
subroutine environment_theme(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.

Call graph

ensure_panels ​

Allocate the single default panel of a fresh figure.

fortran
subroutine ensure_panels(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.

Call graph

render ​

Render the figure on backend, writing file: the multiplot title on top, panels in grid cells of a layout or else in their origin/size boxes; in a multiplot the panels never plotted stay blank, as in gnuplot. Line start. Line end. Line counter. Title font size [px] (a text device: the page's).

Title band [page fraction]. Character counter.

Panel margins. Panel margins at screen fractions.

fortran
subroutine render(self, backend, file)

Arguments

NameTypeIntentAttributesDescription
selfclass(figure_object)inoutFigure.
backendclass(backend_object)inoutOutput device.
filecharacter(len=*)inOutput file.

Call graph

set_tics ​

Fixed ticks from real settings, or automatic ones without step; invalid settings stop. mirror alone (no step, start, end) keeps the tick positions, as gnuplot set xtics nomirror, turning off ticks on at their last positions. positions is an explicit list (gnuplot set xtics ("label" pos level, ...)), with labels (each printed as written, a format if it has a conversion; the axis labels without them) and minor (level 1); add adds the list to the ticks, or a step to the list, instead of replacing them. rotate turns the labels by that angle [deg, counterclockwise; 0 upright], justify (left, right, center) anchors them (left by default, gnuplot rotate by), out points the ticks outward; alone, like mirror, they keep the positions.

fortran
subroutine set_tics(tics, caller, step, start, end, mirror, positions, labels, minor, add, rotate, justify, out)

Arguments

NameTypeIntentAttributesDescription
ticstype(tics_object)inoutAxis tick settings.
callercharacter(len=*)inProcedure name, for messages.
stepreal(kind=R8P)inoptionalTick step.
startreal(kind=R8P)inoptionalFirst tick.
endreal(kind=R8P)inoptionalLast tick.
mirrorlogicalinoptionalTicks also on the opposite border.
positionsreal(kind=R8P)inoptionalExplicit list positions.
labelscharacter(len=*)inoptionalExplicit list labels.
minorlogicalinoptionalExplicit list minor ticks.
addlogicalinoptionalAdd to the ticks.
rotatereal(kind=R8P)inoptionalLabel angle [deg, counterclockwise].
justifycharacter(len=*)inoptionalRotated label justification.
outlogicalinoptionalTicks outward.

Call graph

Functions ​

wall_polygon ​

Grid wall k (y0, x0, y1, x1, z0) with gnuplot's default style and the options: a module procedure, not an internal one of set_wall (nvfortran 26.9 corrupted the figure through one).

Returns: type(shape_object)

fortran
function wall_polygon(k, fc, fs, lw) result(obj)

Arguments

NameTypeIntentAttributesDescription
kinteger(kind=I4P)inWall.
fccharacter(len=*)inoptionalFill color.
fscharacter(len=*)inoptionalFill style words.
lwreal(kind=R8P)inoptionalBorder width [px].

Call graph

place ​

The position (x, y) in system (first when absent; one word for both coordinates, or two: x then y); unknown systems stop.

Returns: type(place_object)

fortran
function place(x, y, system, caller) result(p)

Arguments

NameTypeIntentAttributesDescription
xreal(kind=R8P)inAbscissa.
yreal(kind=R8P)inOrdinate.
systemcharacter(len=*)inoptionalCoordinate systems.
callercharacter(len=*)inProcedure name, for messages.

Call graph

which_axes ​

Axes named in axes (x, y, y2, cb, x2, concatenated), all when absent; unsupported names stop.

Returns: logical

fortran
function which_axes(axes, caller) result(named)

Arguments

NameTypeIntentAttributesDescription
axescharacter(len=*)inoptionalAxes names.
callercharacter(len=*)inProcedure name, for messages.

Call graph

extension ​

Lower case extension of file, empty if none.

Attributes: pure

Returns: character(len=:)

fortran
function extension(file) result(ext)

Arguments

NameTypeIntentAttributesDescription
filecharacter(len=*)inFile name.

Call graph

has_region ​

Whether the key position words name a region (inside, outside, a margin, below, above): they cancel set key at, as gnuplot.

Attributes: pure

Returns: logical

fortran
function has_region(words) result(has)

Arguments

NameTypeIntentAttributesDescription
wordscharacter(len=*)inPosition words.

Call graph

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