private function new_segment_artist(traj, color, width, stride) result(a)
A segment artist for traj (optional), drawn in color color ([r, g,
b] or [r, g, b, a]; default white) and width (window units; default
1), at every stride-th point (default 1).
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Source Code
function new_segment_artist(traj,color,width,stride)result(a)type(Trajectory),intent(in),target,optional::traj!! the trajectory to draw (not owned)real(wp),intent(in),optional::color(:),width!! [r, g, b] or [r, g, b, a] (0 to 1); width (window units, default 1)integer,intent(in),optional::stride!! a segment at every stride-th point (default 1)type(SegmentArtist)::aa%end_=position_sources(3)if(present(traj))call a%set_trajectory(traj)if(present(color))call a%set_color(color)if(present(width))a%width_=widthif(present(stride))call a%set_stride(stride)end function new_segment_artist