File "plot"
This file provides a plotting of a graph. The graph data is
provided by a list of lists of the form [X, Y1, .., Yn]. The
x-axis and y-axis bounds are automatically computed and first
rendered. The results are then multiple line plots for the
sequences (X,Y1), …, (X,Yn). The display can be further refined by
specifying plot options.
The following plot predicates are provided:
- plot(D, L):
- plot(S, D, L):
- The predicate succeeds. As a side effect a line plot for
the data D and plotting options L is created as a SVG graphics
element. The ternary predicate allows specifying a markup writer
S. The following options are supported:
- height(H): The relative height H in percent, default is 100.
- width(W): The relative width W in percent, default is 100.
- mark(Cs): The styles Cs of the line marks.
- line(Cs): The styles Cs of the line segments.
- minx(X): The minimum x-coordinate X, default is -1.
- maxx(X): The maximum x-coordinate X, default is 1.
- miny(Y): The minimum y-coordinate Y, default is -1.
- maxy(Y): The maximum y-coordinate Y, default is 1.
- style(S): The style sheet S to include, default is ''.
- plot_begin(S):
plot_begin(S, L):
- The predicate succeeds. As a side effect the axes for the
plotting options L are created as a SVG graphics element. The
binary predicate allows specifying a markup writer S.
- plot_add(D, L):
plot_add(S, D, L):
- The predicate succeeds. As a side effect a line plot for the
data D and plotting options L is added to the SVG graphics
element. The ternary predicate allows specifying a markup writer
S.
- plot_end:
- plot_end(S):
- The predicate succeeds as a side effect the SVG graphics
element is closed. The unary predicate allows specifying a
markup writer S.
Kommentare