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
| Name | Kind | Module | Description |
|---|---|---|---|
push | interface | foresight_ticks | 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. |
Contents
- paxis_object
- boxplot_style
- colorbox_object
- colormap_object
- pm3d_queue
- axes_object
- push
- ellipse_shapes
- add_series
- data_extent
- axes_extent
- series_extent
- set_defaults
- render
- rotated_anchor
- y_rotated_anchor
- draw_group_titles
- draw_frame
- map_surfaces
- mask_polygons
- view3d_pm3d_marks
- z_marks
- view3d_scene
- scene_quads
- view3d_pm3d_quads
- depth_objects
- box3d_quads
- polygon3d_quads
- zerror_quads
- pm3d_surface_quads
- map_contourfill_slices
- map_contourfill_cb
- contourfill_slices
- pm3d_scan_order
- queue_init
- queue_add
- queue_tag
- queue_order
- queue_series
- queue_runs
- queue_sorted
- queue_append
- view3d_contours
- contour_label_series
- contour_series
- surface_contours
- pm3d_series
- map_depth_order
- draw_map_frame
- render_view3d
- draw_view3d_frame
- draw_grid
- draw_zero_axes
- draw_polar_grid
- draw_polar_axes
- draw_key
- key_sample_marks
- draw_titles_at
- draw_readouts
- key_layout
- resample
- drop_last
- draw_series
- outline
- image_range
- layout_histograms
- draw_pie
- draw_gauges
- draw_radar
- draw_rose
- chart_key
- polar_extent
- polar_bands
- polar_positive_min
- polar_window
- polar_project
- boxplot_words
- curve_words
- spider_words
- head_words
- label_words
- scan_word
- draw_parallel
- draw_spider
- paint_series
- note_palette_colors
- draw_colorbox
- setup_axes
- linked_axis
- nonlinear_axis
- data_label_lines
- plain_ticks
- one_line
- text_rows
- lines_text
- tick_label
- tex_tick
- draw_stamp
- view3d_label_offset
- view3d_shape
- hidden_quads
- key3d_metrics
- key3d_origin
- view3d_zextent
- corner_heights
- view3d_project
- project_series
- axes_names
- readout_position
- key_position
- push_axes
- histep_edges_of
- box_edges_of
- tick_length
- out_shift
- rotated_span
- rotated_extent
- rotated_rise
- rotated_reach
- x2labels_rise
- x2_room
- stacked_column
- stack_names
- group_rows
- xlabels_extent
- series_palette
- has_depth_objects
- zerror_line_color
- in_set_range
- contour_label
- map_geometry_of
- axis_markup
- place_words
- style_words
- family_word
- plain_word
- grid_words
- grid_dash_array
- page_angle
- key_sample
- key_place
- last_drawable
- chart_key_width
- polar_rho
- polar_series
- parallel_axis
- is_panel_chart
- has_image
- any_image
- notes_in_palette
- effective_palette
- is_readout
- title_rows
- has_title
- place_plot_area
- colorbox_width
- colorbox_height
- time_attribute
- label_rows
- element_px
- row_step
- on_zero
- limits
- offset_px
- view3d_place
- map_key_entries
- point_in_xy
- axis_middle
- in_range
- corner_index
- within
- label_dx
- label_dy
Variables
| Name | Type | Attributes | Description |
|---|---|---|---|
PAD | real(kind=R8P) | parameter | Outer padding [px]. |
TICK_MAJOR | real(kind=R8P) | parameter | Major tick length [px]. |
TICK_MINOR | real(kind=R8P) | parameter | Minor tick length [px]. |
GAP | real(kind=R8P) | parameter | Gap between border, tick labels and axis labels [px]. |
LINE_HEIGHT | real(kind=R8P) | parameter | Text line height [font size]. |
HIST_CLUSTERED | integer(kind=I4P) | parameter | Histograms side by side in each row. |
HIST_ROWSTACKED | integer(kind=I4P) | parameter | Histograms stacked by row. |
HIST_COLUMNSTACKED | integer(kind=I4P) | parameter | One stack per histogram, its rows stacked. |
HIST_ERRORBARS | integer(kind=I4P) | parameter | Clustered, with error bars. |
SAMPLE_LENGTH | real(kind=R8P) | parameter | Key sample length [font size]. |
MAX_LINETYPES | integer(kind=I4P) | parameter | Linetypes of set linetype (lw, dt, pt, ps). |
CHAR_WIDTH | real(kind=R8P) | parameter | Character width [font size], gnuplot's character units (its svg terminal's h_char). |
CHAR_HEIGHT | real(kind=R8P) | parameter | Character height [font size], gnuplot's svg v_char (ascent, descent and leading). |
CAP_LENGTH | real(kind=R8P) | parameter | Error bar cap length [px]. |
FRAME_COLOR | character(len=*) | parameter | Border and tick color. |
GRID_COLOR | character(len=*) | parameter | Grid line color. |
GRID_DASHES | character(len=*) | parameter | Grid line dash array. |
WINDOW_FILL | character(len=*) | parameter | Readout window fill: the page background. |
DIGIT_HEIGHT | real(kind=R8P) | parameter | Default readout digit height [font size]. |
COLORBOX_SIZE | real(kind=R8P) | parameter | Color box width [font size]. |
POLAR_STYLES | character(len=*) | parameter | Polar styles. |
CIRCLE_SIDES | integer(kind=I4P) | parameter | Sides of the polygon drawing a circle. |
PI_R8 | real(kind=R8P) | parameter | pi. |
Derived Types
paxis_object
A parallel axis (gnuplot set paxis N) of parallel axis plots and spider plots.
Components
| Name | Type | Attributes | Description |
|---|---|---|---|
axis | type(axis_object) | Range and ticks: autoscaled to the values without extension, no ticks. | |
label | character(len=:) | allocatable | Label of a spider plot axis, the item title if unallocated. |
boxplot_style
Layout of the boxplots, gnuplot set style boxplot.
Components
| Name | Type | Attributes | Description |
|---|---|---|---|
range | real(kind=R8P) | Whiskers to the farthest point within range interquartile ranges. | |
fraction | real(kind=R8P) | If > 0, whiskers spanning this fraction of the points instead. | |
outliers | logical | Draw the points beyond the whiskers. | |
pointtype | integer(kind=I4P) | Point type of the outliers. | |
financebars | logical | Drawn as finance bars, else as candlesticks. | |
median_width | real(kind=R8P) | Median line width [px]; negative: the box line width, 0: none. | |
separation | real(kind=R8P) | Distance between the boxplots of the factor levels. | |
labels | character(len=4) | Factor names as x tick labels: auto (or x), off. | |
sorted | logical | Factor levels in sorted order, else in order of appearance. |
colorbox_object
Color box settings, gnuplot set colorbox.
Components
| Name | Type | Attributes | Description |
|---|---|---|---|
horizontal | logical | Gradient left to right, else bottom to top. | |
user | logical | In the origin/size box, else at the default place. | |
border | logical | Frame drawn. | |
invert | logical | A vertical box with low values at the top. | |
origin | real(kind=R8P) | User box bottom left, canvas fractions from the bottom left. | |
size | real(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
| Name | Type | Attributes | Description |
|---|---|---|---|
palette | type(palette_object) | Colors. | |
ranged | logical | Own range set (set colormap NAME range [min:max]). | |
range | real(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
| Name | Type | Attributes | Description |
|---|---|---|---|
x | real(kind=R8P) | allocatable | Corner abscissae [px]. |
y | real(kind=R8P) | allocatable | Corner ordinates [px]. |
off | integer(kind=I4P) | allocatable | First corner of each polygon (one more: the end). |
d | real(kind=R8P) | allocatable | Depths. |
c | character(len=24) | allocatable | Colors. |
s | integer(kind=I4P) | allocatable | Styles (indexes of styles, 0 none yet). |
styles | type(style_object) | allocatable | Styles. |
n | integer(kind=I4P) | Polygons. | |
nv | integer(kind=I4P) | Corners. |
axes_object
Plot panel.
Components
| Name | Type | Attributes | Description |
|---|---|---|---|
xaxis | type(axis_object) | Horizontal axis. | |
yaxis | type(axis_object) | Vertical axis. | |
y2axis | type(axis_object) | Second vertical axis, on the right: no ticks until set (gnuplot), see set_defaults. | |
y2_active | logical | The second y axis is drawn, set by setup_axes. | |
x2axis | type(axis_object) | Second horizontal axis, on the top: no ticks until set (gnuplot), see set_defaults. | |
x2_active | logical | The second x axis is drawn, set by setup_axes. | |
series | type(series_object) | allocatable | Plotted series. |
title | character(len=:) | allocatable | Panel title, empty for none. |
grid | logical | Draw grid lines at the major ticks. | |
key | logical | Draw the key. | |
key_h | character(len=6) | Key horizontal position: left, center, right. | |
key_v | character(len=6) | Key vertical position: top, center, bottom. | |
key_box | logical | Draw a box around the key. | |
key_reverse | logical | Samples left of the titles (gnuplot reverse). | |
key_plain | logical | The key's texts as they are, not enhanced (noenhanced). | |
title_plain | logical | The title as it is, not enhanced (noenhanced). | |
label_plain | logical | The x, y, y2, x2, r, z, cb labels as they are (noenhanced). | |
key_left | logical | Titles left-justified (gnuplot Left), else right. | |
key_invert | logical | Entries in reverse order (gnuplot invert). | |
key_opaque | logical | The key area painted over the plot (opaque). | |
key_samplen | real(kind=R8P) | Sample length [character widths], negative for foresight's (3 font sizes). | |
key_extra | real(kind=R8P) | Width added to the titles [character widths], width. | |
key_offset | real(kind=R8P) | Key shift [characters], gnuplot offset. | |
key_offset_unit | integer(kind=I4P) | Its coordinates: 0 characters, 1 screen, 2 graph. | |
key_spacing | real(kind=R8P) | Row spacing [rows], gnuplot spacing. | |
point_scale | real(kind=R8P) | Point size of the series without their own, gnuplot set pointsize. | |
lt_lw | real(kind=R8P) | Line widths, negative if not set. | |
lt_dt | integer(kind=I4P) | Dash types, 0 if not set. | |
lt_pt | integer(kind=I4P) | Point types, below -1 if not set. | |
lt_ps | real(kind=R8P) | Point sizes, negative if not set. | |
stamp | logical | Timestamp drawn. | |
stamp_top | logical | In the top margin, else the bottom one. | |
stamp_rotate | logical | Reading upward, in the left margin. | |
stamp_offset | real(kind=R8P) | Shift [characters, y up]. | |
stamp_font | type(font_object) | Font (set timestamp font). | |
stamp_color | character(len=24) | Text color, the frame's if blank. | |
stamp_format | character(len=128) | Time format (gnuplot's asctime). | |
clip_one | logical | Segments with one end out drawn (clip one). | |
clip_two | logical | Segments with both ends out drawn (clip two). | |
clip_points | logical | Points whose marker crosses the border hidden. | |
jitter_spread | real(kind=R8P) | Displacement multiplier, 0 for no jitter. | |
jitter_overlap | real(kind=R8P) | Overlap criterion [characters, or y units]. | |
jitter_first | logical | overlap first: in y axis units. | |
jitter_wrap | real(kind=R8P) | Largest displacement [characters], 0 for none. | |
jitter_style | integer(kind=I4P) | 0 swarm, 1 square, 2 vertical. | |
key_height | real(kind=R8P) | Height added to the key [characters], height. | |
key_maxrows | integer(kind=I4P) | Most rows of a vertical key (more: columns), 0 for one column (gnuplot maxrows). | |
key_maxcols | integer(kind=I4P) | Most columns of a horizontal key, 0 for as many as fit (gnuplot maxcols). | |
gnuplot_key | logical | gnuplot'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_columns | integer(kind=I4P) | Columns of the key, 0 for the automatic layout (gnuplot columns N). | |
key_tc | character(len=24) | Title color: blank the frame's, variable each series' (textcolor). | |
key_box_lc | character(len=24) | Box line color, the frame's if blank (box lc). | |
key_box_lw | real(kind=R8P) | Box line width [px] (box lw). | |
key_box_dt | integer(kind=I4P) | Box dash type (box dt), 1 solid. | |
key_title | character(len=:) | allocatable | Key title, a row above the entries (gnuplot set key title). |
key_title_anchor | character(len=6) | Its anchor: start (gnuplot left), middle or end (right). | |
title_offset | real(kind=R8P) | Title shift [characters], set title offset. | |
title_offset_system | character(len=9) | Its coordinate systems: character, graph (plot fractions), screen. | |
title_anchor | character(len=6) | Title justification, set title left|right: start, middle or end, at the centre. | |
title_color | character(len=24) | Title color, set title tc; empty for the text's. | |
title_font | type(font_object) | Title font, set title font "...". | |
label_font | type(font_object) | x, y, y2, x2, r, z, cb label fonts, set xlabel font. | |
cblabel_font | type(font_object) | Color box label font, set cblabel font. | |
key_font | type(font_object) | Key font (entries and title), set key font. | |
label_offset | real(kind=R8P) | x, y, y2, x2, r, z, cb label shifts [characters, y up], set xlabel offset X,Y. | |
label_color | character(len=24) | x, y, y2, x2, r, z, cb label colors, set xlabel tc. | |
label_rotated | logical | x, y, y2, x2, r, z, cb labels rotated as given (set xlabel rotate [by A]|norotate), drawn so in 3D views. | |
label_rotate | real(kind=R8P) | Their rotations [deg, counterclockwise]. | |
label_parallel | logical | Along their axes in 3D views (rotate parallel). | |
cblabel_norotate | logical | The color box label horizontal (set cblabel norotate; gnuplot's is vertical by default). | |
cleared | logical | Its box painted with the page color first (gnuplot's clear in a multiplot). | |
margin_user | real(kind=R8P) | Left, right, top, bottom margins set (gnuplot set lmargin...): characters, or a page fraction with margin_screen; negative: computed. | |
margin_screen | logical | The margin is at screen F: the border there. | |
key_outside | logical | Key outside the plot area (gnuplot outside). | |
key_margin | character(len=6) | top or bottom margin (gnuplot above, below), else empty. | |
key_horizontal | logical | Entries side by side, in rows. | |
key_at | logical | Key placed at key_xy (gnuplot set key at). | |
key_xy | real(kind=R8P) | Key position, in key_system coordinates. | |
key_system | character(len=6) | Coordinate systems of key_xy: first, second, graph, screen. | |
origin | real(kind=R8P) | Bottom left corner, page fraction (set origin). | |
size | real(kind=R8P) | Width, height, page fraction (set size). | |
fill_default | type(style_object) | Fill of the filled styles, set style fill (its fill components only). | |
boxwidth | real(kind=R8P) | Box width, set boxwidth; 0 for auto (boxes touching). | |
boxdepth | real(kind=R8P) | Box depth of splot with boxes (set boxdepth): 0 a flat front face, -1 square. | |
boxwidth_relative | logical | boxwidth scales the auto width. | |
histogram_rowstacked | logical | Histograms stacked by row, else clustered. | |
histogram_gap | real(kind=R8P) | Gap between clusters [bar slots]. | |
histogram_mode | integer(kind=I4P) | Layout of the histograms: HIST_CLUSTERED, HIST_ROWSTACKED, HIST_COLUMNSTACKED, HIST_ERRORBARS. | |
histogram_lw | real(kind=R8P) | Error bar width of errorbars [px], 0: the series'. | |
errorbar_size | real(kind=R8P) | Error bar and whisker cap length, in CAP_LENGTH units (gnuplot set errorbars SIZE, 0 small). | |
hist_title_color | character(len=:) | allocatable | Color of the histogram group titles (set style histogram title tc), the frame's if unallocated. |
hist_title_offset | real(kind=R8P) | Their offset [characters, y upward]. | |
hist_title_font | type(font_object) | Their font (title font "..."). | |
errorbar_color | character(len=:) | allocatable | Error bar color (set errorbars lc), the series' if unallocated. |
errorbar_lw | real(kind=R8P) | Error bar width [px] (set errorbars lw), 0: the series'. | |
hist_group | integer(kind=I4P) | Group of the histograms plotted next (newhistogram). | |
hist_at_set | logical | The next group starts at hist_at. | |
hist_at | real(kind=R8P) | Start of the next group. | |
hist_title | character(len=:) | allocatable | Title of the next group. |
color_shift | integer(kind=I4P) | Shift of the default linetype colors of the next series (gnuplot newhistogram lt N). | |
palette | type(palette_object) | Palette of the images, set palette. | |
linecolors | character(len=9) | allocatable | Linetype colors, set colorsequence; unallocated: gnuplot's. |
cbaxis | type(axis_object) | Color axis of the images, set cbrange; tight, see set_defaults. | |
colorbox | logical | Draw the color box of the images. | |
cbox | type(colorbox_object) | Color box placement and look, set colorbox. | |
canvas | real(kind=R8P) | Page width and height being rendered [px]. | |
notes | type(label_object) | allocatable | Labels, gnuplot set label. |
arrows | type(arrow_object) | allocatable | Arrows, gnuplot set arrow. |
objects | type(shape_object) | allocatable | Objects, gnuplot set object. |
pixmaps | type(pixmap_object) | allocatable | Images from PNG files, gnuplot set pixmap. |
x2_rise | real(kind=R8P) | Height of the rotated x2 tick labels above their gap [px], 0 if not rotated (set by render from the text widths). | |
readout | logical | Draw the readouts. | |
readout_h | character(len=6) | Readout block horizontal position: left, center, right. | |
readout_v | character(len=6) | Readout block vertical position: top, center, bottom. | |
readout_horizontal | logical | Readouts side by side, else in a column. | |
readout_opaque | logical | Window behind the readouts over a plot. | |
readout_size | real(kind=R8P) | Digit height [px]; 0 for the default, which fills a panel of readouts alone. | |
polar | logical | Polar coordinates (set polar): the series are theta:r. | |
degrees | logical | Angles in degrees (set angles degrees), else radians. | |
theta_origin | real(kind=R8P) | Direction of theta = 0 (set theta) [deg, counterclockwise from the right]. | |
theta_clockwise | logical | Theta grows clockwise. | |
three_d | logical | A 3D panel (gnuplot splot): its series have heights, drawn through its view. | |
zaxis | type(axis_object) | Height axis of a 3D panel: zrange, ztics, zlabel. | |
view3d | type(view3d_object) | View of a 3D panel: set view, set xyplane. | |
scene3d | type(scene3d_object) | Its scene, for an HTML page's mouse rotation. | |
scene_on | logical | The scene being recorded (view3d_scene). | |
layout_own | logical | A panel of a multiplot layout in its own origin, size box (gnuplot: they override the layout for it). | |
box3d | real(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_x | type(axis_object) | Page abscissa [px] of the projected series of a 3D view. | |
page_y | type(axis_object) | Page ordinate [px, negated] of the projected series of a 3D view. | |
pm3d | type(pm3d_object) | pm3d settings of a 3D panel: set pm3d. | |
contour | type(contour_object) | Contour settings of a 3D panel: set contour, set cntrparam. | |
dgrid3d | type(dgrid3d_object) | Gridding of the scattered 3D data: set dgrid3d. | |
raxis | type(axis_object) | Radial axis: rrange, rtics. | |
raxis_on | logical | Draw the radial axis (set|unset raxis). | |
taxis | type(axis_object) | Angle range of the plotted functions, trange. | |
ttics | type(tics_object) | Theta labels around the polar plot; none until set, see set_defaults. | |
grid_polar | real(kind=R8P) | Spoke step of the polar grid [deg]; 0: rectangular grid. | |
border | integer(kind=I4P) | Border sides (gnuplot mask): 1 bottom, 2 left, 4 top, 8 right. | |
border_polar | logical | Circle at the largest r (set border polar). | |
ratio | real(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). | |
boxplot | type(boxplot_style) | Layout of the boxplots, set style boxplot. | |
paxes | type(paxis_object) | allocatable | Parallel axes p1, p2, ... (set paxis), as many as set. |
spiderplot | logical | Spider plot coordinates (set spiderplot). | |
spider_style | type(style_object) | Polygons of the spider plots (set style spiderplot). | |
grid_spider | logical | Web of the spider plot (set grid spiderplot). | |
grid_lines | logical | Grid 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_front | logical | Grid over the data (gnuplot set grid front). | |
border_lc | character(len=:) | allocatable | Border line color, unallocated for the theme's frame color. |
border_lw | real(kind=R8P) | Border line width [px]. | |
border_dt | integer(kind=I4P) | Border dash type, 1 solid. | |
zero_axes | logical | Lines at y = 0, x = 0, y2 = 0, x2 = 0 (gnuplot set xzeroaxis, yzeroaxis, x2zeroaxis, y2zeroaxis). | |
zero_lc | character(len=:) | allocatable | Zero axes line color, unallocated for the frame color. |
zero_lw | real(kind=R8P) | Zero axes line width [px]. | |
zero_dt | integer(kind=I4P) | Zero axes dash type, gnuplot's dots (lt 0) by default. | |
grid_lc | character(len=:) | allocatable | Grid line color, unallocated for the theme's. |
grid_lw | real(kind=R8P) | Grid line width [px]. | |
grid_dt | integer(kind=I4P) | Grid dash type, 0 for foresight's dots. | |
grid_cb | logical | Grid lines across the color box at its major and minor ticks (set grid cb mcb). | |
walls | type(shape_object) | allocatable | The 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_on | logical | Those drawn. | |
cfill_mode | integer(kind=I4P) | set contourfill: 0 auto N, 1 ztics, 2 cbtics. | |
cfill_n | integer(kind=I4P) | set contourfill auto N: the slices. | |
cfill_lt | integer(kind=I4P) | set contourfill firstlinetype N (-1: palette). | |
title_boxed | logical | Title on the background (set title boxed). | |
hist_title_boxed | logical | Histogram group titles on the background. | |
label_boxed | integer(kind=I4P) | Axis labels on the background (set xlabel boxed): bit k-1 for label k (x, y, y2, x2). | |
link_x2 | logical | x2 linked to x (gnuplot set link x2): its range x's. | |
link_y2 | logical | y2 linked to y (set link y2). | |
link_x2_via | logical | The x2 link maps through link_maps(1:2). | |
link_y2_via | logical | The y2 link maps through link_maps(3:4). | |
link_maps | type(expression_object) | allocatable | via 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_x | logical | x a nonlinear axis (gnuplot set nonlinear x), maps 5, 6. | |
nonlinear_y | logical | y a nonlinear axis, maps 7, 8. | |
colormaps | type(colormap_object) | allocatable | Named colormaps of the series (colormap index). |
Type-Bound Procedures
| Name | Attributes | Description |
|---|---|---|
add_series | pass(self) | Add a data series. |
drop_last | pass(self) | Forget the last series. |
resample | pass(self) | Samples of a function series. |
last_drawable | pass(self) | Whether the last series has a valid point. |
data_extent | pass(self) | Extent of the placeable data. |
series_extent | pass(self) | Extent of a series on its axes. |
axes_extent | pass(self) | Extent of the placeable data, per axis. |
x2_room | pass(self) | Room of the second x axis above the plot. |
render | pass(self) | Render the panel. |
set_defaults | pass(self) | Settings of a new panel beyond its components' defaults. |
xlabels_extent | pass(self) | Extent of the rotated x tick labels. |
group_rows | pass(self) | Lines of the histogram group titles. |
stacked_column | pass(self) | Whether a series is a column stack. |
stack_names | pass(self) | The column stack naming the key rows. |
draw_group_titles | pass(self) | Draw the histogram group titles. |
draw_frame | pass(self) | Draw border, ticks, labels and title. |
draw_grid | pass(self) | Draw the grid. |
draw_polar_axes | pass(self) | Draw the radial axis and the theta labels. |
draw_polar_grid | pass(self) | Draw the polar grid. |
page_angle | pass(self) | Page angle of a theta. |
draw_key | pass(self) | Draw the key. |
draw_readouts | pass(self) | Draw the readouts. |
key_layout | pass(self) | Key size and entry grid. |
key_sample | pass(self) | Key sample length. |
grid_dash_array | pass(self) | Grid dash array. |
draw_zero_axes | pass(self) | Draw the zero axes. |
key_place | pass(self) | Where the key lies. |
draw_series | pass(self) | Draw a series. |
has_title | pass(self) | Whether the panel has a title. |
title_rows | pass(self) | Lines of the title. |
is_readout | pass(self) | Whether a series is a readout. |
has_image | pass(self) | Whether the panel has an image. |
draw_colorbox | pass(self) | Draw the color box. |
draw_pie | pass(self) | Draw a pie panel. |
draw_gauges | pass(self) | Draw a panel of gauges. |
draw_radar | pass(self) | Draw a radar panel. |
draw_rose | pass(self) | Draw a rose panel. |
draw_parallel | pass(self) | Draw a parallel axis panel. |
draw_spider | pass(self) | Draw a spider plot panel. |
parallel_axis | pass(self) | A parallel axis set up for its values. |
colorbox_width | pass(self) | Room of the color box [px]. |
colorbox_height | pass(self) | Room of a horizontal color box below the plot [px]. |
place_plot_area | pass(self) | Plot area from the margins. |
map_geometry_of | pass(self) | Geometry of a map view. |
map_surfaces | pass(self) | Series of a map view as drawn (pm3d quadrangles). |
mask_polygons | pass(self) | Polygons of the last with mask item. |
draw_map_frame | pass(self) | Border, ticks, labels and title of a map view. |
render_view3d | pass(self) | Render a 3D view. |
draw_view3d_frame | pass(self) | Box, ticks and labels of a 3D view. |
setup_axes | pass(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).
subroutine ellipse_shapes(series, x, y, bad, angle, major, minor)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
series | type(series_object) | inout | Series. | |
x | real(kind=R8P) | in | Abscissae. | |
y | real(kind=R8P) | in | Ordinates. | |
bad | character(len=:) | out | allocatable | Error, empty if none. |
angle | real(kind=R8P) | in | optional | Angles [deg]. |
major | real(kind=R8P) | in | optional | Major diameters [x units]. |
minor | real(kind=R8P) | in | optional | Minor 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.
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
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | inout | Panel. | |
x | real(kind=R8P) | in | Abscissae. | |
y | real(kind=R8P) | in | Ordinates. | |
title | character(len=*) | in | optional | Key title, empty or absent for none. |
with | character(len=*) | in | optional | Plotting style: lines (default), points, linespoints. |
lc | character(len=*) | in | optional | Line color (SVG color); default from the linetype colors. |
lw | real(kind=R8P) | in | optional | Line width [px]. |
dt | integer(kind=I4P) | in | optional | Dash type, 1..5. |
ps | real(kind=R8P) | in | optional | Point size scale factor. |
xlow | real(kind=R8P) | in | optional | Horizontal error bar starts. |
xhigh | real(kind=R8P) | in | optional | Horizontal error bar ends. |
ylow | real(kind=R8P) | in | optional | Vertical error bar starts. |
yhigh | real(kind=R8P) | in | optional | Vertical error bar ends. |
axes | character(len=*) | in | optional | Axes of the series: x1y1, x1y2, x2y1 or x2y2. |
pt | integer(kind=I4P) | in | optional | gnuplot point type: 0 a dot, 1.. the shapes. |
format | character(len=*) | in | optional | Readout format. |
width | real(kind=R8P) | in | optional | Box widths. |
base | real(kind=R8P) | in | optional | Baseline of a fill. |
fs | character(len=*) | in | optional | Fill style words. |
xlabels | character(len=*) | in | optional | Text labels of the abscissae. |
z | real(kind=R8P) | in | optional | Image values (column, row): x and y are then the pixel centres, evenly spaced and increasing. |
radius | real(kind=R8P) | in | optional | Circle radii [x units], NaN for the default. |
angles | real(kind=R8P) | in | optional | Wedge start and end angles (2, point) [deg]. |
donut | real(kind=R8P) | in | optional | Pie hole, a fraction of the radius (0 to below 1). |
scale | real(kind=R8P) | in | optional | Gauge scale: the values at the start and end of the sweep. |
linear | logical | in | optional | Rose sectors with the radius (not the area) by value. |
close | real(kind=R8P) | in | optional | Closing prices of candlesticks and finance bars (y the opening ones), or the box ends of a box-and-whisker plot. |
whiskerbars | real(kind=R8P) | in | optional | Crossbars of the candlestick whiskers, a fraction of the box width. |
factors | character(len=*) | in | optional | Factor level of each value of a boxplot. |
dx | real(kind=R8P) | in | optional | Vector extents along x. |
dy | real(kind=R8P) | in | optional | Vector extents along y. |
length | real(kind=R8P) | in | optional | Arrow lengths (> 0 x units, in (-1, 0) plot width fraction). |
angle | real(kind=R8P) | in | optional | Arrow or ellipse angles, sector angular extents [the angle unit for sectors, else deg]. |
major | real(kind=R8P) | in | optional | Ellipse major diameters [x units]. |
minor | real(kind=R8P) | in | optional | Ellipse minor diameters [y units]. |
labels | character(len=*) | in | optional | Texts of labels. |
label | character(len=*) | in | optional | Label options: gnuplot with labels words. |
head | character(len=*) | in | optional | Arrowhead words: head, heads, nohead, backhead, filled, empty, nofilled. |
origins | real(kind=R8P) | in | optional | Sector centres (2, point), [0, 0] if absent. |
curve | character(len=*) | in | optional | Filled curve options: gnuplot closed, x1, x2, xy=X,Y, above, below (with base or a band). |
channels | real(kind=R8P) | in | optional | RGB image colors (4, column, row), 0 to 255: red, green, blue, alpha; z then its red ones. |
at | real(kind=R8P) | in | optional | Position of a parallel axis (its number if absent). |
colors | character(len=*) | in | optional | Color of each point (gnuplot lc variable). |
palette_z | real(kind=R8P) | in | optional | Palette value of each point (gnuplot lc palette z). |
palette_cb | real(kind=R8P) | in | optional | A color axis value (gnuplot lc palette cb). |
palette_frac | real(kind=R8P) | in | optional | A 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
subroutine data_extent(self, xmin, xmax, ymin, ymax, found)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
xmin | real(kind=R8P) | out | Smallest abscissa, first x axis. | |
xmax | real(kind=R8P) | out | Largest abscissa, first x axis. | |
ymin | real(kind=R8P) | out | Smallest ordinate, per y axis. | |
ymax | real(kind=R8P) | out | Largest ordinate, per y axis. | |
found | logical | out | Any 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
subroutine axes_extent(self, xmin, xmax, ymin, ymax, found, xfound)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
xmin | real(kind=R8P) | out | Smallest abscissa, per x axis. | |
xmax | real(kind=R8P) | out | Largest abscissa, per x axis. | |
ymin | real(kind=R8P) | out | Smallest ordinate, per y axis. | |
ymax | real(kind=R8P) | out | Largest ordinate, per y axis. | |
found | logical | out | Any placeable point, per y axis. | |
xfound | logical | out | Any 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
subroutine series_extent(self, s, windowed, xmin, xmax, ymin, ymax, found, xfound)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
s | integer(kind=I4P) | in | Series index. | |
windowed | logical | in | Count only the points inside the x range. | |
xmin | real(kind=R8P) | inout | Smallest abscissa, per x axis. | |
xmax | real(kind=R8P) | inout | Largest abscissa, per x axis. | |
ymin | real(kind=R8P) | inout | Smallest ordinate, per y axis. | |
ymax | real(kind=R8P) | inout | Largest ordinate, per y axis. | |
found | logical | inout | Any placeable point, per y axis. | |
xfound | logical | inout | Any 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
subroutine set_defaults(self)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | inout | Panel. |
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].
subroutine render(self, backend, x0, y0, width, height, font_size, canvas)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | inout | Panel. | |
backend | class(backend_object) | inout | Output device. | |
x0 | real(kind=R8P) | in | Box left side [px]. | |
y0 | real(kind=R8P) | in | Box top side [px]. | |
width | real(kind=R8P) | in | Box width [px]. | |
height | real(kind=R8P) | in | Box height [px]. | |
font_size | real(kind=R8P) | in | Font size [px]. | |
canvas | real(kind=R8P) | in | optional | Page 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
subroutine rotated_anchor(p, base, angle, font_size, x, y)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
p | real(kind=R8P) | in | Tick abscissa [px]. | |
base | real(kind=R8P) | in | Ordinate the labels hang from [px]. | |
angle | real(kind=R8P) | in | Label angle [deg]. | |
font_size | real(kind=R8P) | in | Font size [px]. | |
x | real(kind=R8P) | out | Anchor abscissa [px]. | |
y | real(kind=R8P) | out | Anchor 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
subroutine y_rotated_anchor(tics, base, p, second, font_size, x, y, anchor)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
tics | type(tics_object) | in | Axis tick settings. | |
base | real(kind=R8P) | in | Border abscissa, moved by outward ticks [px]. | |
p | real(kind=R8P) | in | Tick ordinate [px]. | |
second | logical | in | The y2 axis. | |
font_size | real(kind=R8P) | in | Font size [px]. | |
x | real(kind=R8P) | out | Baseline anchor abscissa [px]. | |
y | real(kind=R8P) | out | Baseline anchor ordinate [px]. | |
anchor | character(len=6) | out | start, 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.
subroutine draw_group_titles(self, backend, left, right, baseline, font_size)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
backend | class(backend_object) | inout | Output device. | |
left | real(kind=R8P) | in | Plot area left [px]. | |
right | real(kind=R8P) | in | Plot area right [px]. | |
baseline | real(kind=R8P) | in | Text baseline [px]. | |
font_size | real(kind=R8P) | in | Font 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].
subroutine draw_frame(self, backend, area, x0, y0, x1, font_size)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
backend | class(backend_object) | inout | Output device. | |
area | real(kind=R8P) | in | Plot area: left, right, top, bottom [px]. | |
x0 | real(kind=R8P) | in | Box left side [px]. | |
y0 | real(kind=R8P) | in | Box top side [px]. | |
x1 | real(kind=R8P) | in | Box right side [px]. | |
font_size | real(kind=R8P) | in | Font 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.
subroutine map_surfaces(self)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | inout | Panel. |
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.
subroutine mask_polygons(self, mx, my)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
mx | real(kind=R8P) | out | allocatable | Polygons abscissae. |
my | real(kind=R8P) | out | allocatable | Polygons 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.
subroutine view3d_pm3d_marks(self)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | inout | Panel. |
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.
subroutine z_marks(self, one, blank, marks, found)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
one | type(series_object) | in | The item. | |
blank | type(series_object) | in | A series of default components. | |
marks | type(series_object) | out | The marks. | |
found | logical | out | Some 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.
subroutine view3d_scene(self, f)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | inout | Panel. | |
f | type(view3d_frame) | in | The 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.
subroutine scene_quads(self, s, f, p)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | inout | Panel. | |
s | integer(kind=I4P) | in | Surface. | |
f | type(view3d_frame) | in | The view. | |
p | type(palette_object) | in | Effective 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.
subroutine view3d_pm3d_quads(self, f, p)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | inout | Panel. | |
f | type(view3d_frame) | in | The view. | |
p | type(palette_object) | in | Effective 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).
subroutine depth_objects(self, f, q)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
f | type(view3d_frame) | in | The view. | |
q | type(pm3d_queue) | inout | Depth 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.
subroutine box3d_quads(pm, one, f, depth, xaxis, yaxis, zaxis, boxwidth, boxdepth, rot_x, rot_z, quads, keyed, q)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
pm | type(pm3d_object) | in | pm3d settings. | |
one | type(series_object) | in | The item. | |
f | type(view3d_frame) | in | The view. | |
depth | logical | in | Queued, not drawn in place. | |
xaxis | type(axis_object) | in | x axis. | |
yaxis | type(axis_object) | in | y axis. | |
zaxis | type(axis_object) | in | z axis. | |
boxwidth | real(kind=R8P) | in | set boxwidth, 0 none. | |
boxdepth | real(kind=R8P) | in | set boxdepth, 0 none, -1 square. | |
rot_x | real(kind=R8P) | in | View rotation about x [deg]. | |
rot_z | real(kind=R8P) | in | View rotation about z [deg]. | |
quads | type(series_object) | out | Its faces (in place). | |
keyed | type(series_object) | out | Its key entry. | |
q | type(pm3d_queue) | inout | Depth 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.
subroutine polygon3d_quads(pm, one, f, depth, rot_x, rot_z, quads, q)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
pm | type(pm3d_object) | in | pm3d settings. | |
one | type(series_object) | in | The item. | |
f | type(view3d_frame) | in | The view. | |
depth | logical | in | Queued, not drawn in place. | |
rot_x | real(kind=R8P) | in | View rotation about x [deg]. | |
rot_z | real(kind=R8P) | in | View rotation about z [deg]. | |
quads | type(series_object) | out | Its polygons (in place). | |
q | type(pm3d_queue) | inout | Depth 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).
subroutine zerror_quads(pm, one, f, depth, quads, q)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
pm | type(pm3d_object) | in | pm3d settings. | |
one | type(series_object) | in | The item. | |
f | type(view3d_frame) | in | The view. | |
depth | logical | in | Queued, not drawn in place. | |
quads | type(series_object) | out | Its quadrangles (in place). | |
q | type(pm3d_queue) | inout | Depth 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.
subroutine pm3d_surface_quads(pm, xaxis, yaxis, zaxis, cbaxis, one, f, p, depth, rot_x, rot_z, quads, q, lows, highs, slice_colors)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
pm | type(pm3d_object) | in | pm3d settings. | |
xaxis | type(axis_object) | in | x axis. | |
yaxis | type(axis_object) | in | y axis. | |
zaxis | type(axis_object) | in | z axis. | |
cbaxis | type(axis_object) | in | Color axis. | |
one | type(series_object) | in | Surface. | |
f | type(view3d_frame) | in | The view. | |
p | type(palette_object) | in | Effective palette. | |
depth | logical | in | Queued, not drawn in place. | |
rot_x | real(kind=R8P) | in | View rotation about x [deg]. | |
rot_z | real(kind=R8P) | in | View rotation about z [deg]. | |
quads | type(series_object) | out | Its quadrangles (in place). | |
q | type(pm3d_queue) | inout | Depth queue. | |
lows | real(kind=R8P) | in | optional | with contourfill: slice lows. |
highs | real(kind=R8P) | in | optional | Slice highs. |
slice_colors | character(len=24) | in | optional | Slice 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).
subroutine map_contourfill_slices(self, lows, highs, mids, colors, zr)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
lows | real(kind=R8P) | out | allocatable | Slice lows. |
highs | real(kind=R8P) | out | allocatable | Slice highs. |
mids | real(kind=R8P) | out | allocatable | Slice color values. |
colors | character(len=24) | out | allocatable | Slice colors. |
zr | real(kind=R8P) | out | z 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).
subroutine map_contourfill_cb(self, za, lows, highs, mids, colors)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
za | type(axis_object) | in | z axis, set up. | |
lows | real(kind=R8P) | out | allocatable | Slice lows. |
highs | real(kind=R8P) | out | allocatable | Slice highs. |
mids | real(kind=R8P) | out | allocatable | Slice color values. |
colors | character(len=24) | out | allocatable | Slice 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, ...).
subroutine contourfill_slices(self, za, ca, p, lows, highs, mids, colors)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
za | type(axis_object) | in | z axis, set up. | |
ca | type(axis_object) | in | Color axis, set up. | |
p | type(palette_object) | in | Effective palette. | |
lows | real(kind=R8P) | out | allocatable | Slice lows. |
highs | real(kind=R8P) | out | allocatable | Slice highs. |
mids | real(kind=R8P) | out | allocatable | Slice color values. |
colors | character(len=24) | out | allocatable | Slice 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
subroutine pm3d_scan_order(pm, one, f, swap, back)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
pm | type(pm3d_object) | in | pm3d settings. | |
one | type(series_object) | in | Surface. | |
f | type(view3d_frame) | in | The view. | |
swap | logical | out | Scans from the last. | |
back | logical | out | Points from the last. |
Call graph
queue_init
An empty depth queue.
Attributes: pure
subroutine queue_init(q)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
q | type(pm3d_queue) | out | Queue. |
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
subroutine queue_add(q, px, py, depth, color)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
q | type(pm3d_queue) | inout | Queue. | |
px | real(kind=R8P) | in | Corner abscissae. | |
py | real(kind=R8P) | in | Corner ordinates. | |
depth | real(kind=R8P) | in | Depth. | |
color | character(len=*) | in | Color. |
Call graph
queue_tag
The polygons queued after the first n0 in style (appended to the styles, through temporaries).
Attributes: pure
subroutine queue_tag(q, n0, style)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
q | type(pm3d_queue) | inout | Queue. | |
n0 | integer(kind=I4P) | in | Queued before. | |
style | type(style_object) | in | Their style. |
Call graph
queue_order
The queued polygons by depth, farthest first (gnuplot's compare_quadrangles; stable on ties: insertion).
Attributes: pure
subroutine queue_order(q, order)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
q | type(pm3d_queue) | in | Queue. | |
order | integer(kind=I4P) | out | allocatable | Sorted 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
subroutine queue_series(q, order, first, last, run)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
q | type(pm3d_queue) | in | Queue. | |
order | integer(kind=I4P) | in | Sorted order. | |
first | integer(kind=I4P) | in | First. | |
last | integer(kind=I4P) | in | Last. | |
run | type(series_object) | inout | Polygons. |
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).
subroutine queue_runs(q, drawn)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
q | type(pm3d_queue) | in | Queue. | |
drawn | type(series_object) | inout | allocatable | Series 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
subroutine queue_sorted(q, run)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
q | type(pm3d_queue) | in | Queue. | |
run | type(series_object) | inout | Polygons. |
Call graph
queue_append
The polygons of local queued in q.
Attributes: pure
subroutine queue_append(q, local)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
q | type(pm3d_queue) | inout | Queue. | |
local | type(pm3d_queue) | in | An 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).
subroutine view3d_contours(self)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | inout | Panel. |
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).
subroutine contour_label_series(self, s, drawn)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
s | integer(kind=I4P) | in | Surface series. | |
drawn | type(series_object) | inout | allocatable | Series 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.
subroutine contour_series(self, s, drawn, heights)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
s | integer(kind=I4P) | in | Surface series. | |
drawn | type(series_object) | inout | allocatable | Series as drawn. |
heights | logical | in | optional | The 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.
subroutine surface_contours(self, series, dataset, cx, cy, cz, level, first)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
series | type(series_object) | in | Surface. | |
dataset | integer(kind=I4P) | in | Its dataset. | |
cx | real(kind=R8P) | out | allocatable | Lines, NaN separated. |
cy | real(kind=R8P) | out | allocatable | Lines, NaN separated. |
cz | real(kind=R8P) | out | allocatable | Lines, NaN separated. |
level | real(kind=R8P) | out | allocatable | Level of each chunk. |
first | logical | out | allocatable | First 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.
subroutine pm3d_series(series, settings, xaxis, yaxis, zaxis, titled, mx, my, quads, lows, highs, mids, zrange, slice_colors)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
series | type(series_object) | in | Surface. | |
settings | type(pm3d_object) | in | pm3d settings. | |
xaxis | type(axis_object) | in | Horizontal axis. | |
yaxis | type(axis_object) | in | Vertical axis. | |
zaxis | type(axis_object) | in | Height axis. | |
titled | logical | in | Keep the title. | |
mx | real(kind=R8P) | in | Mask polygons abscissae, NaN separated. | |
my | real(kind=R8P) | in | Mask polygons ordinates. | |
quads | type(series_object) | out | Quadrangles. | |
lows | real(kind=R8P) | in | optional | with contourfill: slice lows. |
highs | real(kind=R8P) | in | optional | Slice highs. |
mids | real(kind=R8P) | in | optional | Slice color values. |
zrange | real(kind=R8P) | in | optional | z axis range. |
slice_colors | character(len=24) | in | optional | Slice 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
subroutine map_depth_order(px, py, pc, pz)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
px | real(kind=R8P) | inout | Abscissae. | |
py | real(kind=R8P) | inout | Ordinates. | |
pc | real(kind=R8P) | inout | Color values. | |
pz | real(kind=R8P) | inout | Heights. |
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].
subroutine draw_map_frame(self, backend, geo, font_size)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
backend | class(backend_object) | inout | Output device. | |
geo | type(map_geometry) | in | Geometry. | |
font_size | real(kind=R8P) | in | Font 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].
subroutine render_view3d(self, backend, x0, y0, width, height, font_size)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | inout | Panel. | |
backend | class(backend_object) | inout | Output device. | |
x0 | real(kind=R8P) | in | Box left side [px]. | |
y0 | real(kind=R8P) | in | Box top side [px]. | |
width | real(kind=R8P) | in | Box width [px]. | |
height | real(kind=R8P) | in | Box height [px]. | |
font_size | real(kind=R8P) | in | Font 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).
subroutine draw_view3d_frame(self, backend, f, front, font_size, raw)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
backend | class(backend_object) | inout | Output device. | |
f | type(view3d_frame) | in | The view. | |
front | logical | in | The front pass, else the back one. | |
font_size | real(kind=R8P) | in | Font size [px]. | |
raw | type(series_object) | in | Series 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.
subroutine draw_grid(self, backend, area)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
backend | class(backend_object) | inout | Output device. | |
area | real(kind=R8P) | in | Plot 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.
subroutine draw_zero_axes(self, backend)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
backend | class(backend_object) | inout | Output 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].
subroutine draw_polar_grid(self, backend)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
backend | class(backend_object) | inout | Output 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].
subroutine draw_polar_axes(self, backend, area, font_size)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
backend | class(backend_object) | inout | Output device. | |
area | real(kind=R8P) | in | Plot area: left, right, top, bottom [px]. | |
font_size | real(kind=R8P) | in | Font 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.
subroutine draw_key(self, backend, area, box, font_size, grid, extent, origin, sample3d)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
backend | class(backend_object) | inout | Output device. | |
area | real(kind=R8P) | in | Plot area: left, right, top, bottom [px]. | |
box | real(kind=R8P) | in | Panel box: left, top, right, bottom [px]. | |
font_size | real(kind=R8P) | in | Font size [px]. | |
grid | integer(kind=I4P) | in | Entries, columns, rows (key_layout). | |
extent | real(kind=R8P) | in | Key width and height [px] (key_layout). | |
origin | real(kind=R8P) | in | optional | Key top left corner [px], instead of its place. |
sample3d | real(kind=R8P) | in | optional | 3D 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.
subroutine key_sample_marks(series, backend, xs, yc, font_size, half)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
series | type(series_object) | in | Series. | |
backend | class(backend_object) | inout | Output device. | |
xs | real(kind=R8P) | in | Sample abscissae [px]. | |
yc | real(kind=R8P) | in | Row centre [px]. | |
font_size | real(kind=R8P) | in | Font size [px]. | |
half | real(kind=R8P) | in | optional | Half 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).
subroutine draw_titles_at(self, backend, area, font_size)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
backend | class(backend_object) | inout | Output device. | |
area | real(kind=R8P) | in | Plot area: left, right, top, bottom [px]. | |
font_size | real(kind=R8P) | in | Font 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.
subroutine draw_readouts(self, backend, area, font_size, fill)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
backend | class(backend_object) | inout | Output device. | |
area | real(kind=R8P) | in | Box: left, right, top, bottom [px]. | |
font_size | real(kind=R8P) | in | Font size [px]. | |
fill | logical | in | Readouts 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
subroutine key_layout(self, backend, font_size, room, grid, extent, tall)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
backend | class(backend_object) | in | Output device, for text widths. | |
font_size | real(kind=R8P) | in | Font size [px]. | |
room | real(kind=R8P) | in | Width available to a row of entries [px]. | |
grid | integer(kind=I4P) | out | Entries, columns, rows. | |
extent | real(kind=R8P) | out | Key width and height [px]. | |
tall | real(kind=R8P) | in | optional | Height 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).
subroutine resample(self, s, x, y)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | inout | Panel. | |
s | integer(kind=I4P) | in | Series. | |
x | real(kind=R8P) | in | Abscissae. | |
y | real(kind=R8P) | in | Ordinates. |
Call graph
drop_last
Forget the last series (gnuplot's unbounded iteration ends on an empty item, not drawn).
subroutine drop_last(self)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | inout | Panel. |
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.
subroutine draw_series(self, backend, s, xaxis, yaxis, area, font_size)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
backend | class(backend_object) | inout | Output device. | |
s | integer(kind=I4P) | in | Series index. | |
xaxis | type(axis_object) | in | Horizontal axis of the series. | |
yaxis | type(axis_object) | in | Vertical axis of the series. | |
area | real(kind=R8P) | in | Plot area: left, right, top, bottom [px]. | |
font_size | real(kind=R8P) | in | Font 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
subroutine outline(r, r_in, a1, a2, px, py)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
r | real(kind=R8P) | in | Radius. | |
r_in | real(kind=R8P) | in | Hole radius, 0 for none. | |
a1 | real(kind=R8P) | in | Start angle [deg]. | |
a2 | real(kind=R8P) | in | End angle [deg]; below a1: one more turn, as gnuplot. | |
px | real(kind=R8P) | out | allocatable | Vertex abscissae. |
py | real(kind=R8P) | out | allocatable | Vertex 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
subroutine image_range(all, zmin, zmax, found, positive)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
all | type(series_object) | in | Series of the panel. | |
zmin | real(kind=R8P) | out | Smallest value. | |
zmax | real(kind=R8P) | out | Largest value. | |
found | logical | out | Any finite value. | |
positive | logical | in | Positive 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.
subroutine layout_histograms(all, mode, gap, boxwidth, linecolors)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
all | type(series_object) | inout | Series of the panel. | |
mode | integer(kind=I4P) | in | HIST_CLUSTERED, HIST_ROWSTACKED, ... | |
gap | real(kind=R8P) | in | Gap between clusters [bar slots]. | |
boxwidth | real(kind=R8P) | in | Bar width factor, 0 for 1. | |
linecolors | character(len=9) | in | optional | Linetype 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.
subroutine draw_pie(self, backend, box, font_size)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
backend | class(backend_object) | inout | Output device. | |
box | real(kind=R8P) | in | Box: left, right, top, bottom [px]. | |
font_size | real(kind=R8P) | in | Font 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.
subroutine draw_gauges(self, backend, box, font_size)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
backend | class(backend_object) | inout | Output device. | |
box | real(kind=R8P) | in | Box: left, right, top, bottom [px]. | |
font_size | real(kind=R8P) | in | Font 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.
subroutine draw_radar(self, backend, box, font_size)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
backend | class(backend_object) | inout | Output device. | |
box | real(kind=R8P) | in | Box: left, right, top, bottom [px]. | |
font_size | real(kind=R8P) | in | Font 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.
subroutine draw_rose(self, backend, box, font_size)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
backend | class(backend_object) | inout | Output device. | |
box | real(kind=R8P) | in | Box: left, right, top, bottom [px]. | |
font_size | real(kind=R8P) | in | Font 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.
subroutine chart_key(backend, right, top, labels, colors, density, font_size)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
backend | class(backend_object) | inout | Output device. | |
right | real(kind=R8P) | in | Key right side [px]. | |
top | real(kind=R8P) | in | Key top [px]. | |
labels | character(len=*) | in | Entries. | |
colors | character(len=*) | in | Sample colors. | |
density | real(kind=R8P) | in | Sample opacity. | |
font_size | real(kind=R8P) | in | Font 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
subroutine polar_extent(all, rmax, found)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
all | type(series_object) | in | Series, theta:r. | |
rmax | real(kind=R8P) | out | Largest |r|. | |
found | logical | out | Any 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.
subroutine polar_bands(all)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
all | type(series_object) | inout | Series, 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
subroutine polar_positive_min(all, rmin)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
all | type(series_object) | in | Series, theta:r. | |
rmin | real(kind=R8P) | out | Smallest 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
subroutine polar_window(all, fixed, ends)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
all | type(series_object) | inout | Series, theta:r. | |
fixed | logical | in | Start, end of the theta range set. | |
ends | real(kind=R8P) | in | Start, 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
subroutine polar_project(all, rmin, cut, degrees, origin, clockwise, logr, reversed, rim)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
all | type(series_object) | inout | Series: theta:r in, x:y out. | |
rmin | real(kind=R8P) | in | r at the pole. | |
cut | logical | in | Points below rmin undefined. | |
degrees | logical | in | Theta in degrees, else radians. | |
origin | real(kind=R8P) | in | Page angle of theta = 0 [deg]. | |
clockwise | logical | in | Theta grows clockwise. | |
logr | logical | in | Log r axis. | |
reversed | logical | in | A reversed r axis: r = rmin at the pole, smaller r outwards; a larger r undefined. | |
rim | real(kind=R8P) | in | Distance 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
subroutine boxplot_words(words, style, bad)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
words | character(len=*) | in | Words. | |
style | type(boxplot_style) | inout | Boxplot style. | |
bad | character(len=:) | out | allocatable | Problem, 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
subroutine curve_words(words, series, bad)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
words | character(len=*) | in | Words. | |
series | type(series_object) | inout | Filled curve series. | |
bad | character(len=:) | out | allocatable | Problem, 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.
subroutine spider_words(words, style, bad)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
words | character(len=*) | in | Words. | |
style | type(style_object) | inout | Spider plot style. | |
bad | character(len=:) | out | allocatable | Problem, 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
subroutine head_words(words, head, filled, bad)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
words | character(len=*) | in | Words. | |
head | integer(kind=I4P) | inout | Heads: 0 none, 1 end, 2 start, 3 both. | |
filled | logical | inout | Filled heads. | |
bad | character(len=:) | out | allocatable | Unknown 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
subroutine label_words(words, series, bad)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
words | character(len=*) | in | Words. | |
series | type(series_object) | inout | Labels series. | |
bad | character(len=:) | out | allocatable | Problem, 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
subroutine scan_word(text, pos, word)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
text | character(len=*) | in | Text. | |
pos | integer(kind=I4P) | inout | Scan position. | |
word | character(len=:) | out | allocatable | Word. |
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.
subroutine draw_parallel(self, backend, box, font_size)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
backend | class(backend_object) | inout | Output device. | |
box | real(kind=R8P) | in | Box: left, right, top, bottom [px]. | |
font_size | real(kind=R8P) | in | Font 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].
subroutine draw_spider(self, backend, box, font_size)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
backend | class(backend_object) | inout | Output device. | |
box | real(kind=R8P) | in | Box: left, right, top, bottom [px]. | |
font_size | real(kind=R8P) | in | Font 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
subroutine paint_series(all, p, cbaxis, maps)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
all | type(series_object) | inout | Series of the panel. | |
p | type(palette_object) | in | Effective palette. | |
cbaxis | type(axis_object) | in | Color axis. | |
maps | type(colormap_object) | in | optional | Named 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
subroutine note_palette_colors(notes, z, p, cbaxis)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
notes | type(label_object) | inout | Labels. | |
z | real(kind=R8P) | in | Their heights (z of their positions). | |
p | type(palette_object) | in | Effective palette. | |
cbaxis | type(axis_object) | in | Color 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.
subroutine draw_colorbox(self, backend, area, panel, font_size, geo, box3d)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
backend | class(backend_object) | inout | Output device. | |
area | real(kind=R8P) | in | Plot area: left, right, top, bottom [px]. | |
panel | real(kind=R8P) | in | Panel box: left, top, right, bottom [px]. | |
font_size | real(kind=R8P) | in | Font size [px]. | |
geo | type(map_geometry) | in | optional | Geometry of a map view (of a 3D view with box3d). |
box3d | real(kind=R8P) | in | optional | A 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.
subroutine setup_axes(self, area, raw)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | inout | Panel. | |
area | real(kind=R8P) | in | Plot area: left, right, top, bottom [px]. | |
raw | type(series_object) | in | optional | Series 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.
subroutine linked_axis(second, first, maps, k, npx)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
second | type(axis_object) | inout | Secondary axis. | |
first | type(axis_object) | in | Primary axis. | |
maps | type(expression_object) | in | optional | Maps (via), absent for the same axis. |
k | integer(kind=I4P) | in | Forward map index. | |
npx | real(kind=R8P) | in | Axis 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).
subroutine nonlinear_axis(axis, maps, k, npx, dmin, dmax, found)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
axis | type(axis_object) | inout | Axis. | |
maps | type(expression_object) | in | Maps: f at k, g at k + 1. | |
k | integer(kind=I4P) | in | Forward map index. | |
npx | real(kind=R8P) | in | Axis length [px]. | |
dmin | real(kind=R8P) | in | Smallest data value. | |
dmax | real(kind=R8P) | in | Largest data value. | |
found | logical | in | Any 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.
subroutine data_label_lines(backend, x, y, text, anchor, angle, color, dx, dy, font_size)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
backend | class(backend_object) | inout | Output device. | |
x | real(kind=R8P) | in | Anchor abscissa [unit]. | |
y | real(kind=R8P) | in | Anchor ordinate [unit]. | |
text | character(len=*) | in | Text. | |
anchor | character(len=*) | in | Horizontal anchor. | |
angle | real(kind=R8P) | in | Rotation [deg]. | |
color | character(len=*) | in | Color. | |
dx | real(kind=R8P) | in | Horizontal offset [px]. | |
dy | real(kind=R8P) | in | Vertical offset [px, down]. | |
font_size | real(kind=R8P) | in | Font 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).
subroutine plain_ticks(self)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | type(axes_object) | inout | Panel. |
Call graph
one_line
Tick labels on several lines (new lines in them) joined on one line, a blank between the lines.
Attributes: pure
subroutine one_line(ticks)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
ticks | type(tick_object) | inout | Ticks. |
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.
subroutine text_rows(backend, x, y, text, anchor, step, color)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
backend | class(backend_object) | inout | Output device. | |
x | real(kind=R8P) | in | Anchor abscissa [px]. | |
y | real(kind=R8P) | in | First baseline [px]. | |
text | character(len=*) | in | Text. | |
anchor | character(len=*) | in | start, middle or end. | |
step | real(kind=R8P) | in | Line spacing [px]. | |
color | character(len=*) | in | Text 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.
subroutine lines_text(backend, x, y, label, sup, step, color)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
backend | class(backend_object) | inout | Output device. | |
x | real(kind=R8P) | in | Centre abscissa [px]. | |
y | real(kind=R8P) | in | First baseline [px]. | |
label | character(len=*) | in | Text. | |
sup | character(len=*) | in | Superscript. | |
step | real(kind=R8P) | in | Line spacing [px]. | |
color | character(len=*) | in | Text 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.
subroutine tick_label(backend, tics, font_size, x, y, label, anchor, sup, rotate)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
backend | class(backend_object) | inout | Output device. | |
tics | type(tics_object) | in | Axis tick settings. | |
font_size | real(kind=R8P) | in | Font size [px]. | |
x | real(kind=R8P) | in | Anchor abscissa [px]. | |
y | real(kind=R8P) | in | Anchor ordinate (baseline) [px]. | |
label | character(len=*) | in | Text. | |
anchor | character(len=*) | in | Horizontal anchor. | |
sup | character(len=*) | in | Superscript. | |
rotate | real(kind=R8P) | in | Rotation [deg, clockwise], 0 for none. |
Call graph
tex_tick
A number of the default format in LaTeX math, as gnuplot's latex terminals ("\times10^{n} raised); other labels as they are.
Attributes: pure
subroutine tex_tick(tics, text, raised)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
tics | type(tics_object) | in | Axis tick settings. | |
text | character(len=:) | inout | allocatable | Label. |
raised | character(len=:) | inout | allocatable | Superscript. |
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.
subroutine draw_stamp(self, backend, x0, y0, height, font_size)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | type(axes_object) | in | Panel. | |
backend | class(backend_object) | inout | Output device. | |
x0 | real(kind=R8P) | in | Box left [px]. | |
y0 | real(kind=R8P) | in | Box top [px]. | |
height | real(kind=R8P) | in | Box height [px]. | |
font_size | real(kind=R8P) | in | Font 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
subroutine view3d_label_offset(f, label, canvas, xaxis, yaxis, zaxis)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
f | type(view3d_frame) | in | The view. | |
label | type(label_object) | inout | Label, its position projected already. | |
canvas | real(kind=R8P) | in | Page width and height [px]. | |
xaxis | type(axis_object) | in | x axis. | |
yaxis | type(axis_object) | in | y axis. | |
zaxis | type(axis_object) | in | z 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
subroutine view3d_shape(f, shape, canvas, xaxis, yaxis, zaxis, scale)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
f | type(view3d_frame) | in | The view. | |
shape | type(shape_object) | inout | Object. | |
canvas | real(kind=R8P) | in | Page width and height [px]. | |
xaxis | type(axis_object) | in | x axis. | |
yaxis | type(axis_object) | in | y axis. | |
zaxis | type(axis_object) | in | z axis. | |
scale | real(kind=R8P) | in | View 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).
subroutine hidden_quads(raw, f, series, qx, qy, depth, color, lw)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
raw | type(series_object) | in | Series as given. | |
f | type(view3d_frame) | in | The view. | |
series | type(series_object) | inout | Projected series. | |
qx | real(kind=R8P) | out | allocatable | Page abscissae (4, quadrangle) [px]. |
qy | real(kind=R8P) | out | allocatable | Page ordinates. |
depth | real(kind=R8P) | out | allocatable | Depths. |
color | character(len=24) | out | allocatable | Line colors. |
lw | real(kind=R8P) | out | allocatable | Line 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
subroutine key3d_metrics(self, font_size, grid, km)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
font_size | real(kind=R8P) | in | Font size [px]. | |
grid | integer(kind=I4P) | in | Key entries, columns, rows. | |
km | real(kind=R8P) | out | Metrics [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
subroutine key3d_origin(self, f, km, grid, xinkey, yinkey)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
f | type(view3d_frame) | in | The view. | |
km | real(kind=R8P) | in | Key metrics (key3d_metrics). | |
grid | integer(kind=I4P) | in | Key entries, columns, rows. | |
xinkey | real(kind=R8P) | out | First entry anchor abscissa [units]. | |
yinkey | real(kind=R8P) | out | Its 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
subroutine view3d_zextent(series, logarithmic, xaxis, yaxis, zr, found)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
series | type(series_object) | in | Series. | |
logarithmic | logical | in | A log z axis. | |
xaxis | type(axis_object) | in | x axis. | |
yaxis | type(axis_object) | in | y axis. | |
zr | real(kind=R8P) | out | Smallest and largest height. | |
found | logical | out | Any 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
subroutine corner_heights(series, f, xaxis, yaxis, heights, depths)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
series | type(series_object) | in | Series as given. | |
f | type(view3d_frame) | in | The view. | |
xaxis | type(axis_object) | in | x axis. | |
yaxis | type(axis_object) | in | y axis. | |
heights | real(kind=R8P) | out | Highest point per corner (linear z). | |
depths | real(kind=R8P) | out | Lowest point per corner. |
Call graph
view3d_project
The 3D series projected on the page by the view f (project_series).
subroutine view3d_project(series, f, surface)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
series | type(series_object) | inout | Series. | |
f | type(view3d_frame) | in | The view. | |
surface | logical | in | Surfaces 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.
subroutine project_series(one, f, surface, lo, hi)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
one | type(series_object) | inout | Series. | |
f | type(view3d_frame) | in | The view. | |
surface | logical | in | Surfaces drawn. | |
lo | real(kind=R8P) | in | Box start (linear spaces). | |
hi | real(kind=R8P) | in | Box 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
subroutine axes_names(names, x, y, y2, bad, cb, x2)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
names | character(len=*) | in | Axis names. | |
x | logical | inout | x named. | |
y | logical | inout | y named. | |
y2 | logical | inout | y2 named. | |
bad | character(len=:) | out | allocatable | Unsupported rest, empty if none. |
cb | logical | inout | optional | cb (color axis) named. |
x2 | logical | inout | optional | x2 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
subroutine readout_position(words, horizontal, vertical, layout, bad)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
words | character(len=*) | in | Blank separated words. | |
horizontal | character(len=6) | inout | Horizontal position. | |
vertical | character(len=6) | inout | Vertical position. | |
layout | logical | inout | Readouts side by side. | |
bad | character(len=:) | out | allocatable | First 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
subroutine key_position(words, horizontal, vertical, outside, margin, layout, bad)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
words | character(len=*) | in | Blank separated words. | |
horizontal | character(len=6) | inout | Horizontal position. | |
vertical | character(len=6) | inout | Vertical position. | |
outside | logical | inout | Outside the plot area. | |
margin | character(len=6) | inout | top, bottom or empty. | |
layout | logical | inout | Entries side by side. | |
bad | character(len=:) | out | allocatable | First 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
subroutine push_axes(list, item)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
list | type(axes_object) | inout | allocatable | List. |
item | type(axes_object) | in | New 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
subroutine histep_edges_of(x, left, right)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
x | real(kind=R8P) | in | Abscissae. | |
left | real(kind=R8P) | out | allocatable | Left edges. |
right | real(kind=R8P) | out | allocatable | Right 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
subroutine box_edges_of(x, boxwidth, relative, left, right)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
x | real(kind=R8P) | in | Abscissae. | |
boxwidth | real(kind=R8P) | in | set boxwidth, not positive if unset. | |
relative | logical | in | boxwidth relative to the auto width. | |
left | real(kind=R8P) | out | allocatable | Left edges. |
right | real(kind=R8P) | out | allocatable | Right 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)
function tick_length(tics, major) result(length)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
tics | type(tics_object) | in | Axis tick settings. | |
major | logical | in | A major tick. |
Call graph
out_shift
Room outward ticks take beyond the border [px], 0 for inward ones.
Attributes: pure
Returns: real(kind=R8P)
function out_shift(tics) result(shift)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
tics | type(tics_object) | in | Axis 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)
function rotated_span(width, angle, anchor, font_size) result(span)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
width | real(kind=R8P) | in | Label width [px]. | |
angle | real(kind=R8P) | in | Angle [deg]. | |
anchor | character(len=*) | in | start, middle or end. | |
font_size | real(kind=R8P) | in | Font 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)
function rotated_extent(width, angle, anchor, font_size) result(extent)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
width | real(kind=R8P) | in | Label width [px]. | |
angle | real(kind=R8P) | in | Label angle [deg]. | |
anchor | character(len=*) | in | start, end or middle. | |
font_size | real(kind=R8P) | in | Font 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)
function rotated_rise(width, angle, anchor, font_size) result(rise)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
width | real(kind=R8P) | in | Label width [px]. | |
angle | real(kind=R8P) | in | Label angle [deg]. | |
anchor | character(len=*) | in | start, end or middle. | |
font_size | real(kind=R8P) | in | Font 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)
function rotated_reach(width, angle, anchor, font_size) result(reach)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
width | real(kind=R8P) | in | Label width [px]. | |
angle | real(kind=R8P) | in | Label angle [deg]. | |
anchor | character(len=*) | in | start, end or middle. | |
font_size | real(kind=R8P) | in | Font 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)
function x2labels_rise(self, backend, font_size) result(height)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
backend | class(backend_object) | in | Output device, for text widths. | |
font_size | real(kind=R8P) | in | Font 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)
function x2_room(self, font_size) result(room)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
font_size | real(kind=R8P) | in | Font 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
function stacked_column(self, s) result(yes)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
s | integer(kind=I4P) | in | Series 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)
function stack_names(self) result(s)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. |
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)
function group_rows(self) result(rows)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. |
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)
function xlabels_extent(self, backend, font_size) result(extent)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
backend | class(backend_object) | in | Output device, for text widths. | |
font_size | real(kind=R8P) | in | Font 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)
function series_palette(self, s, p) result(pal)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
s | integer(kind=I4P) | in | Series. | |
p | type(palette_object) | in | Panel palette. |
Call graph
has_depth_objects
Whether the panel has depthorder polygons (set object N polygon depthorder).
Attributes: pure
Returns: logical
function has_depth_objects(self) result(yes)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. |
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=:)
function zerror_line_color(one) result(color)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
one | type(series_object) | in | The 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
function in_set_range(axis, v) result(inside)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
axis | type(axis_object) | in | Axis. | |
v | real(kind=R8P) | in | Value. |
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=:)
function contour_label(format, z) result(label)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
format | character(len=*) | in | Format. | |
z | real(kind=R8P) | in | Level. |
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)
function map_geometry_of(self, x0, y0, width, height, font_size) result(geo)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
x0 | real(kind=R8P) | in | Box left side [px]. | |
y0 | real(kind=R8P) | in | Box top side [px]. | |
width | real(kind=R8P) | in | Box width [px]. | |
height | real(kind=R8P) | in | Box height [px]. | |
font_size | real(kind=R8P) | in | Font 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
function axis_markup(axis) result(yes)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
axis | type(axis_object) | in | Axis. |
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=:)
function place_words(axis, text) result(words)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
axis | type(axis_object) | in | Axis. | |
text | character(len=*) | in | Tick 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=:)
function style_words(tics, text) result(words)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
tics | type(tics_object) | in | Axis tick settings. | |
text | character(len=*) | in | Tick 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=:)
function family_word(family) result(word)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
family | character(len=*) | in | Family. |
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=:)
function plain_word(plain, tics) result(words)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
plain | logical | in | Labels as they are. | |
tics | character(len=*) | in | Tick 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=:)
function grid_words(lines) result(words)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
lines | logical | in | x, 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=:)
function grid_dash_array(self) result(dashes)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. |
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)
function page_angle(self, theta) result(a)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
theta | real(kind=R8P) | in | Theta [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)
function key_sample(self, font_size) result(length)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
font_size | real(kind=R8P) | in | Font 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)
function key_place(self) result(place)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. |
Call graph
last_drawable
Whether the last series has a point of finite coordinates.
Returns: logical
function last_drawable(self) result(yes)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. |
Call graph
chart_key_width
Width of a chart key [px]: the widest entry, a gap, the sample.
Attributes: pure
Returns: real(kind=R8P)
function chart_key_width(backend, labels, font_size) result(width)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
backend | class(backend_object) | in | Output device. | |
labels | character(len=*) | in | Entries. | |
font_size | real(kind=R8P) | in | Font 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)
function polar_rho(raxis, r) result(rho)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
raxis | type(axis_object) | in | Radial axis. | |
r | real(kind=R8P) | in | Radius. |
Call graph
polar_series
Whether series can be drawn on a polar panel (see POLAR_STYLES).
Attributes: elemental
Returns: logical
function polar_series(series) result(ok)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
series | type(series_object) | in | Series. |
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)
function parallel_axis(self, k, npx, members) result(axis)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
k | integer(kind=I4P) | in | Axis number. | |
npx | real(kind=R8P) | in | Axis length [px]. | |
members | integer(kind=I4P) | in | optional | Series 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
function is_panel_chart(with) result(is)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
with | integer(kind=I4P) | in | Style 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
function has_image(self, palette) result(has)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
palette | logical | in | optional | Palette 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
function any_image(all, palette) result(has)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
all | type(series_object) | in | Series of the panel. | |
palette | logical | in | Palette 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
function notes_in_palette(self) result(yes)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. |
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)
function effective_palette(palette, theme) result(p)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
palette | type(palette_object) | in | Panel palette. | |
theme | character(len=*) | in | Theme name. |
Call graph
is_readout
Whether the s-th series is a readout.
Attributes: elemental
Returns: logical
function is_readout(self, s) result(is)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
s | integer(kind=I4P) | in | Series 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)
function title_rows(self) result(rows)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. |
Call graph
has_title
Whether the panel has a non-empty title.
Attributes: pure
Returns: logical
function has_title(self) result(has)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. |
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)
function place_plot_area(self, backend, x0, y0, width, height, font_size, above) result(area)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
backend | class(backend_object) | in | Output device, for text widths. | |
x0 | real(kind=R8P) | in | Box left side [px]. | |
y0 | real(kind=R8P) | in | Box top side [px]. | |
width | real(kind=R8P) | in | Box width [px]. | |
height | real(kind=R8P) | in | Box height [px]. | |
font_size | real(kind=R8P) | in | Font size [px]. | |
above | real(kind=R8P) | in | Room 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)
function colorbox_width(self, backend, font_size) result(room)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
backend | class(backend_object) | in | Output device, for text widths. | |
font_size | real(kind=R8P) | in | Font 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)
function colorbox_height(self, font_size) result(room)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
font_size | real(kind=R8P) | in | Font 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=:)
function time_attribute(axis) result(text)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
axis | type(axis_object) | in | Axis. |
Call graph
label_rows
Lines of the tallest major tick label (new lines in it), at least 1.
Attributes: pure
Returns: integer(kind=I4P)
function label_rows(ticks) result(rows)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
ticks | type(tick_object) | in | Ticks. |
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)
function element_px(backend, font, font_size) result(size)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
backend | class(backend_object) | in | Output device. | |
font | type(font_object) | in | Element font. | |
font_size | real(kind=R8P) | in | Page 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)
function row_step(backend, font_size) result(step)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
backend | class(backend_object) | in | Output device. | |
font_size | real(kind=R8P) | in | Font 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
function on_zero(tics, other) result(yes)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
tics | type(tics_object) | in | Tick settings. | |
other | type(axis_object) | in | The 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
function limits(axis) result(yes)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
axis | type(axis_object) | in | Axis. |
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)
function offset_px(offset, systems, plot, canvas, font_size) result(d)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
offset | real(kind=R8P) | in | Offset. | |
systems | character(len=*) | in | Coordinate systems. | |
plot | real(kind=R8P) | in | Plot area width and height [px]. | |
canvas | real(kind=R8P) | in | Page width and height [px]. | |
font_size | real(kind=R8P) | in | Font 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)
function view3d_place(f, p, canvas, xaxis, yaxis, zaxis, solid) result(q)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
f | type(view3d_frame) | in | The view. | |
p | type(place_object) | in | Position. | |
canvas | real(kind=R8P) | in | Page width and height [px]. | |
xaxis | type(axis_object) | in | x axis. | |
yaxis | type(axis_object) | in | y axis. | |
zaxis | type(axis_object) | in | z axis. | |
solid | logical | in | optional | A 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)
function map_key_entries(self, geo, key_px) result(s3)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(axes_object) | in | Panel. | |
geo | type(map_geometry) | in | The map's geometry. | |
key_px | real(kind=R8P) | in | Key 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
function point_in_xy(one, i, xaxis, yaxis) result(inside)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
one | type(series_object) | in | Series. | |
i | integer(kind=I4P) | in | Point. | |
xaxis | type(axis_object) | in | x axis. | |
yaxis | type(axis_object) | in | y 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)
function axis_middle(axis) result(mid)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
axis | type(axis_object) | in | Axis. |
Call graph
in_range
Whether v lies within the range of axis (its ends included, a hair of tolerance).
Attributes: pure
Returns: logical
function in_range(axis, v) result(yes)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
axis | type(axis_object) | in | Axis. | |
v | real(kind=R8P) | in | Value. |
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)
function corner_index(v, axis) result(i)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
v | real(kind=R8P) | in | Value. | |
axis | type(axis_object) | in | Axis. |
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
function within(axis, v) result(yes)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
axis | type(axis_object) | in | Axis. | |
v | real(kind=R8P) | in | Tick value. |
Call graph
label_dx
Horizontal shift of the tick labels of tics [px]: their offset in characters.
Attributes: pure
Returns: real(kind=R8P)
function label_dx(tics, font_size) result(dx)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
tics | type(tics_object) | in | Axis tick settings. | |
font_size | real(kind=R8P) | in | Font 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)
function label_dy(tics, font_size) result(dy)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
tics | type(tics_object) | in | Axis tick settings. | |
font_size | real(kind=R8P) | in | Font size [px]. |
Call graph