fplotlib_artist module#

The drawing primitives the plot types are built from. Every call they make to a renderer goes through put_path, put_rect, put_circle, put_markers, put_glyphs and put_image, which leave out missing data, NaN or infinite, the way matplotlib does: a path is broken where a vertex is missing, and a shape, a marker, a run of text or an image placed at a missing point is not drawn. The renderer itself accepts only finite coordinates. Geometry reaching far outside the view, up to the largest double, is clipped to a box ten canvases wide around the canvas, filled shapes as polygons and strokes segment by segment, so every format gets coordinates it can write and every line keeps its direction.

fplotlib_artist (module)#

Procedures

hex_byte (function)#

pure function hex_byte(s) -> v
Arguments:
scharacter(len=2), intent(in)
Returns:
vinteger

hex_digit (function)#

pure function hex_digit(c) -> v
Arguments:
ccharacter(len=1), intent(in)
Returns:
vinteger

hex_pair (function)#

pure function hex_pair(v) -> s
Arguments:
vinteger, intent(in)
Returns:
scharacter(len=2)

hex_rgb (function)#

pure function hex_rgb(s) -> c
Arguments:
scharacter(len=*), intent(in)
Returns:
cinteger, dimension(3)

pen (function)#

function pen(color, lw, alpha, ls) -> p
Arguments:
colorcharacter(len=*), intent(in)
lwreal(kind=dp), intent(in)
alphareal(kind=dp), intent(in), optional
lsinteger, intent(in), optional
Returns:
ptype(paint_t)

brush (function)#

function brush(color, alpha) -> p
Arguments:
colorcharacter(len=*), intent(in)
alphareal(kind=dp), intent(in), optional
Returns:
ptype(paint_t)

line_verbs (function)#

pure function line_verbs(np) -> v
Arguments:
npinteger, intent(in)
Returns:
vinteger, dimension(np)

text_ascent (function)#

pure elemental function text_ascent(size) -> text_ascent
Arguments:
sizereal(kind=dp), intent(in)
Returns:
text_ascentreal(kind=dp)

text_descent (function)#

pure elemental function text_descent(size) -> text_descent
Arguments:
sizereal(kind=dp), intent(in)
Returns:
text_descentreal(kind=dp)

text_mid (function)#

pure elemental function text_mid(size) -> text_mid
Arguments:
sizereal(kind=dp), intent(in)
Returns:
text_midreal(kind=dp)

str_width (function)#

function str_width(s, size, weight, slant) -> w
Arguments:
scharacter(len=*), intent(in)
sizereal(kind=dp), intent(in)
weightinteger, intent(in), optional
slantinteger, intent(in), optional
Returns:
wreal(kind=dp)

line_count (function)#

pure function line_count(s) -> line_count
Arguments:
scharacter(len=*), intent(in)
Returns:
line_countinteger

char_count (function)#

pure function char_count(s, c) -> n
Arguments:
scharacter(len=*), intent(in)
ccharacter(len=*), intent(in)
Returns:
ninteger

sort_in_place (subroutine)#

pure subroutine sort_in_place(v)
Arguments:
vreal(kind=dp), intent(inout), dimension(:)

set_clip (subroutine)#

subroutine set_clip(x, y, w, h)
Arguments:
xreal(kind=dp), intent(in)
yreal(kind=dp), intent(in)
wreal(kind=dp), intent(in)
hreal(kind=dp), intent(in)

clear_clip (subroutine)#

subroutine clear_clip

set_dash (subroutine)#

subroutine set_dash(p, ls)
Arguments:
ptype(paint_t), intent(inout)
lsinteger, intent(in)

put_path (subroutine)#

subroutine put_path(b, x, y, verbs, n_verb, paint)
Arguments:
bclass(renderer_t), intent(inout)
xreal(kind=dp), intent(in), dimension(:)
yreal(kind=dp), intent(in), dimension(:)
verbsinteger, intent(in), dimension(:)
n_verbinteger, intent(in)
painttype(paint_t), intent(in)

put_rect (subroutine)#

subroutine put_rect(b, x, y, w, h, paint, radius)
Arguments:
bclass(renderer_t), intent(inout)
xreal(kind=dp), intent(in)
yreal(kind=dp), intent(in)
wreal(kind=dp), intent(in)
hreal(kind=dp), intent(in)
painttype(paint_t), intent(in)
radiusreal(kind=dp), intent(in), optional

put_circle (subroutine)#

subroutine put_circle(b, cx, cy, r, paint)
Arguments:
bclass(renderer_t), intent(inout)
cxreal(kind=dp), intent(in)
cyreal(kind=dp), intent(in)
rreal(kind=dp), intent(in)
painttype(paint_t), intent(in)

put_markers (subroutine)#

subroutine put_markers(b, x, y, mx, my, mverbs, n_mverb, paint)
Arguments:
bclass(renderer_t), intent(inout)
xreal(kind=dp), intent(in), dimension(:)
yreal(kind=dp), intent(in), dimension(:)
mxreal(kind=dp), intent(in), dimension(:)
myreal(kind=dp), intent(in), dimension(:)
mverbsinteger, intent(in), dimension(:)
n_mverbinteger, intent(in)
painttype(paint_t), intent(in)

put_glyphs (subroutine)#

subroutine put_glyphs(b, x, y, run, paint, angle)
Arguments:
bclass(renderer_t), intent(inout)
xreal(kind=dp), intent(in)
yreal(kind=dp), intent(in)
runtype(glyphrun_t), intent(in)
painttype(paint_t), intent(in)
anglereal(kind=dp), intent(in)

put_image (subroutine)#

subroutine put_image(b, x, y, w, h, rgba, nx, ny, paint)
Arguments:
bclass(renderer_t), intent(inout)
xreal(kind=dp), intent(in)
yreal(kind=dp), intent(in)
wreal(kind=dp), intent(in)
hreal(kind=dp), intent(in)
rgbainteger, (:, :, :), intent(in), dimension(:,:,:)
nxinteger, intent(in)
nyinteger, intent(in)
painttype(paint_t), intent(in)

append_stroke_path (subroutine)#

subroutine append_stroke_path(b, px, py, np, color, lw, alpha)
Arguments:
bclass(renderer_t), intent(inout)
pxreal(kind=dp), intent(in), dimension(:)
pyreal(kind=dp), intent(in), dimension(:)
npinteger, intent(in)
colorcharacter(len=*), intent(in)
lwreal(kind=dp), intent(in)
alphareal(kind=dp), intent(in)

append_polygon (subroutine)#

subroutine append_polygon(b, px, py, np, color, alpha, seal)
Arguments:
bclass(renderer_t), intent(inout)
pxreal(kind=dp), intent(in), dimension(:)
pyreal(kind=dp), intent(in), dimension(:)
npinteger, intent(in)
colorcharacter(len=*), intent(in)
alphareal(kind=dp), intent(in)
seallogical, intent(in), optional

marker_shape (subroutine)#

subroutine marker_shape(mk, ms, mx, my, mv, nv, np, do_fill, do_stroke, lw)
Arguments:
mkinteger, intent(in)
msreal(kind=dp), intent(in)
mxreal(kind=dp), intent(out), dimension(:)
myreal(kind=dp), intent(out), dimension(:)
mvinteger, intent(out), dimension(:)
nvinteger, intent(out)
npinteger, intent(out)
do_filllogical, intent(out)
do_strokelogical, intent(out)
lwreal(kind=dp), intent(out)

append_markers (subroutine)#

subroutine append_markers(b, mk, x, y, n, ms, color, alpha, face, edge, ewidth)
Arguments:
bclass(renderer_t), intent(inout)
mkinteger, intent(in)
xreal(kind=dp), intent(in), dimension(:)
yreal(kind=dp), intent(in), dimension(:)
ninteger, intent(in)
msreal(kind=dp), intent(in)
colorcharacter(len=*), intent(in)
alphareal(kind=dp), intent(in)
facecharacter(len=*), intent(in), optional
edgecharacter(len=*), intent(in), optional
ewidthreal(kind=dp), intent(in), optional

append_marker (subroutine)#

subroutine append_marker(b, mk, cx, cy, ms, color, alpha)
Arguments:
bclass(renderer_t), intent(inout)
mkinteger, intent(in)
cxreal(kind=dp), intent(in)
cyreal(kind=dp), intent(in)
msreal(kind=dp), intent(in)
colorcharacter(len=*), intent(in)
alphareal(kind=dp), intent(in)

append_text (subroutine)#

subroutine append_text(b, x, y, s, anchor, fontsize, color, rot, weight, slant, baseline)
Arguments:
bclass(renderer_t), intent(inout)
xreal(kind=dp), intent(in)
yreal(kind=dp), intent(in)
scharacter(len=*), intent(in)
anchorcharacter(len=*), intent(in)
fontsizereal(kind=dp), intent(in)
colorcharacter(len=*), intent(in)
rotreal(kind=dp), intent(in), optional
weightinteger, intent(in), optional
slantinteger, intent(in), optional
baselineinteger, intent(in), optional

align_run (subroutine)#

subroutine align_run(run, w, f, anchor, baseline, dx, dy)
Arguments:
runtype(glyphrun_t), intent(inout)
wreal(kind=dp), intent(in)
ftype(font_t), intent(in)
anchorinteger, intent(in)
baselineinteger, intent(in)
dxreal(kind=dp), intent(out), optional
dyreal(kind=dp), intent(out), optional

append_math (subroutine)#

subroutine append_math(b, x, y, s, f, p, anchor, baseline, ang)
Arguments:
bclass(renderer_t), intent(inout)
xreal(kind=dp), intent(in)
yreal(kind=dp), intent(in)
scharacter(len=*), intent(in)
ftype(font_t), intent(in)
ptype(paint_t), intent(in)
anchorinteger, intent(in)
baselineinteger, intent(in)
angreal(kind=dp), intent(in)

line_bounds (subroutine)#

pure subroutine line_bounds(s, k, i0, i1)
Arguments:
scharacter(len=*), intent(in)
kinteger, intent(in)
i0integer, intent(out)
i1integer, intent(out)

append_arrow (subroutine)#

subroutine append_arrow(b, t, px, py, tx, ty)
Arguments:
bclass(renderer_t), intent(inout)
ttype(text_t), intent(in)
pxreal(kind=dp), intent(in)
pyreal(kind=dp), intent(in)
txreal(kind=dp), intent(in)
tyreal(kind=dp), intent(in)

unit_towards (subroutine)#

subroutine unit_towards(x, y, cx, cy, fx, fy, ux, uy)
Arguments:
xreal(kind=dp), intent(in)
yreal(kind=dp), intent(in)
cxreal(kind=dp), intent(in)
cyreal(kind=dp), intent(in)
fxreal(kind=dp), intent(in)
fyreal(kind=dp), intent(in)
uxreal(kind=dp), intent(out)
uyreal(kind=dp), intent(out)

append_annotation (subroutine)#

subroutine append_annotation(b, t, px, py)
Arguments:
bclass(renderer_t), intent(inout)
ttype(text_t), intent(in)
pxreal(kind=dp), intent(in)
pyreal(kind=dp), intent(in)

append_line (subroutine)#

subroutine append_line(b, x1, y1, x2, y2, color, lw, ls, alpha)
Arguments:
bclass(renderer_t), intent(inout)
x1real(kind=dp), intent(in)
y1real(kind=dp), intent(in)
x2real(kind=dp), intent(in)
y2real(kind=dp), intent(in)
colorcharacter(len=*), intent(in)
lwreal(kind=dp), intent(in)
lsinteger, intent(in)
alphareal(kind=dp), intent(in)

append_hatch (subroutine)#

subroutine append_hatch(b, px, py, np, pattern, color, alpha)
Arguments:
bclass(renderer_t), intent(inout)
pxreal(kind=dp), intent(in), dimension(:)
pyreal(kind=dp), intent(in), dimension(:)
npinteger, intent(in)
patterncharacter(len=*), intent(in)
colorcharacter(len=*), intent(in)
alphareal(kind=dp), intent(in)

hatch_family (subroutine)#

subroutine hatch_family(b, px, py, np, fam, nrep, color, alpha)
Arguments:
bclass(renderer_t), intent(inout)
pxreal(kind=dp), intent(in), dimension(:)
pyreal(kind=dp), intent(in), dimension(:)
npinteger, intent(in)
faminteger, intent(in)
nrepinteger, intent(in)
colorcharacter(len=*), intent(in)
alphareal(kind=dp), intent(in)

hatch_line (subroutine)#

subroutine hatch_line(b, px, py, np, ox, oy, dx, dy, color, alpha)
Arguments:
bclass(renderer_t), intent(inout)
pxreal(kind=dp), intent(in), dimension(:)
pyreal(kind=dp), intent(in), dimension(:)
npinteger, intent(in)
oxreal(kind=dp), intent(in)
oyreal(kind=dp), intent(in)
dxreal(kind=dp), intent(in)
dyreal(kind=dp), intent(in)
colorcharacter(len=*), intent(in)
alphareal(kind=dp), intent(in)

append_round_rect (subroutine)#

subroutine append_round_rect(b, x, y, w, h, r, color, alpha, edge)
Arguments:
bclass(renderer_t), intent(inout)
xreal(kind=dp), intent(in)
yreal(kind=dp), intent(in)
wreal(kind=dp), intent(in)
hreal(kind=dp), intent(in)
rreal(kind=dp), intent(in)
colorcharacter(len=*), intent(in)
alphareal(kind=dp), intent(in)
edgecharacter(len=*), intent(in)

append_rect (subroutine)#

subroutine append_rect(b, x, y, w, h, color, alpha, edge, elw)
Arguments:
bclass(renderer_t), intent(inout)
xreal(kind=dp), intent(in)
yreal(kind=dp), intent(in)
wreal(kind=dp), intent(in)
hreal(kind=dp), intent(in)
colorcharacter(len=*), intent(in)
alphareal(kind=dp), intent(in), optional
edgecharacter(len=*), intent(in), optional
elwreal(kind=dp), intent(in), optional

append_open_circle (subroutine)#

subroutine append_open_circle(b, cx, cy, r, color)
Arguments:
bclass(renderer_t), intent(inout)
cxreal(kind=dp), intent(in)
cyreal(kind=dp), intent(in)
rreal(kind=dp), intent(in)
colorcharacter(len=*), intent(in)

append_wedge (subroutine)#

subroutine append_wedge(b, cx, cy, rx, ry, a0, a1, color, alpha, edge, ewidth)
Arguments:
bclass(renderer_t), intent(inout)
cxreal(kind=dp), intent(in)
cyreal(kind=dp), intent(in)
rxreal(kind=dp), intent(in)
ryreal(kind=dp), intent(in)
a0real(kind=dp), intent(in)
a1real(kind=dp), intent(in)
colorcharacter(len=*), intent(in)
alphareal(kind=dp), intent(in)
edgecharacter(len=*), intent(in), optional
ewidthreal(kind=dp), intent(in), optional

append_cell (subroutine)#

subroutine append_cell(b, x, y, w, h, color)
Arguments:
bclass(renderer_t), intent(inout)
xreal(kind=dp), intent(in)
yreal(kind=dp), intent(in)
wreal(kind=dp), intent(in)
hreal(kind=dp), intent(in)
colorcharacter(len=*), intent(in)

append_tick (subroutine)#

subroutine append_tick(b, x1, y1, x2, y2)
Arguments:
bclass(renderer_t), intent(inout)
x1real(kind=dp), intent(in)
y1real(kind=dp), intent(in)
x2real(kind=dp), intent(in)
y2real(kind=dp), intent(in)

append_spine (subroutine)#

subroutine append_spine(b, x1, y1, x2, y2)
Arguments:
bclass(renderer_t), intent(inout)
x1real(kind=dp), intent(in)
y1real(kind=dp), intent(in)
x2real(kind=dp), intent(in)
y2real(kind=dp), intent(in)

append_tick_at (subroutine)#

subroutine append_tick_at(b, x, y, ox, oy, dir, length)
Arguments:
bclass(renderer_t), intent(inout)
xreal(kind=dp), intent(in)
yreal(kind=dp), intent(in)
oxreal(kind=dp), intent(in)
oyreal(kind=dp), intent(in)
dirreal(kind=dp), intent(in)
lengthreal(kind=dp), intent(in)

append_tick_text (subroutine)#

subroutine append_tick_text(b, x, y, s, anchor, fontsize, rot)
Arguments:
bclass(renderer_t), intent(inout)
xreal(kind=dp), intent(in)
yreal(kind=dp), intent(in)
scharacter(len=*), intent(in)
anchorcharacter(len=*), intent(in)
fontsizereal(kind=dp), intent(in)
rotreal(kind=dp), intent(in)