plot::data
-- create two- and
three-dimensional plots of dataplot::data
(format, datalist)
plots data
specified in datalist
in different formats, such as
points, columns, beams or pie-charts.
plot::data(format, datalist <, option1,
option2...>)
format |
- | either Beam, Column, Curve, Line, Piechart2d, Piechart3d, Plain, Points, LinesPoints, CurvesPoints or Surface |
datalist |
- | either list of numerical values, or a list of lists, where each inner list is a list of numerical values |
option1, option2, ... |
- | plot option(s) of the form option =
value , including the special plot option Colors |
Colors |
- | list of RGB color specifications, i.e., list of three real numerical values between 0 and 1. |
an object of the domain type plot::Scene
.
plot2d
, plot3d
, plot::Pointlist
, plot::Polygon
plot(...)
to display the plot of the data on the
screen.Note that plot::data
does not return a
graphical object but a graphical scene!
option1
, option2
... must
be valid plot options for two or three-dimensional graphical scenes,
respectively. See plot2d
and plot3d
for details.datalist
must be a list of lists of numeric values.
Each of the values in the list [z_i_1,...,z_i_n]
are
interpreted as the z-value corresponding to the y-value i and x-values
1,...,n
, i.e., the points
(1,i,z_1),...,(n,i,z_n)
. Consists the list of
m
lists i=1,...,m
.datalist
is
a list [d_1,...,d_n]
.datalist
is drawn.datalist
must be a list of lists of numeric values. Each
of the values in the list [y_1,...,y_n]
are interpreted as
the y-value corresponding to the x-values 1,...,n
, i.e.,
the points (1,y_1),...,(n,y_n)
are plotted. The values of
one list defines an object.>> plot(plot::data( Piechart2d, [5,12,38,14,25] ))
>> plot(plot::data( Piechart3d, [5,12,38], Colors = [RGB::RoyalBlue, RGB::VioletRed, RGB::GreenPale] ))
>> plot(plot::data( Lines, [[5,10,24,-3], [6,5,2,18], [19,45,12,-10]], Colors = [RGB::Red, RGB::Green, RGB::Blue] ))
>> plot(plot::data( Columns, [[5,10,24,-3,6,5,2,18]] ))
>> plot(plot::data( Columns, [[5,10,24,-3], [6,5,2,18], [19,45,12,-10]], Colors = [RGB::Red, RGB::Green, RGB::Blue] ))
>> plot(plot::data( Beams, [[5,10,24,-3], [6,5,2,18], [19,45,12,-10]], Colors = [RGB::Red, RGB::Green, RGB::Blue], Axes = Box ))
>> plot(plot::data( Curves, [[5,10,24,-3], [6,5,2,18], [19,45,12,-10]], Colors = [RGB::Red, RGB::Green, RGB::Blue] ))
>> plot(plot::data( Surface, [[5,10,24,-3], [6,5,2,18], [19,45,12,-10]] ))
>> plot(plot::data(Plain, [[5,10,24,-3], [6,5,2,18], [19,45,12,-10]], Colors = [RGB::Red, RGB::Red, RGB::Green] ))
plotlib::dataplot
plot::data
is now part of the new plot library
plot
, and its calling
syntax and the return value were changed.Points
, LinesPoints
and
LinesPoints
.