plot::data -- create two- and
three-dimensional plots of data
Introductionplot::data(format, datalist) plots data
specified in datalist in different formats, such as
points, columns, beams or pie-charts.
Call(s)plot::data(format, datalist <, option1,
option2...>)
Parametersformat |
- | 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 |
OptionsColors |
- | list of RGB color specifications, i.e., list of three real numerical values between 0 and 1. |
Returnsan object of the domain type plot::Scene.
Related
Functionsplot2d, plot3d, plot::Pointlist, plot::Polygon
Detailsplot(...) 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.
Option: Piechart2d and Piechart3d
Option: Plain and Surfacedatalist 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].
Option: Points, LinesPoints and CurvesPointsdatalist is drawn.
Option: Line, Curve, Column and Beamdatalist 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.
Example
1
>> plot(plot::data(
Piechart2d, [5,12,38,14,25]
))
>> plot(plot::data(
Piechart3d, [5,12,38],
Colors = [RGB::RoyalBlue, RGB::VioletRed, RGB::GreenPale]
))
Example
2
>> plot(plot::data(
Lines, [[5,10,24,-3], [6,5,2,18], [19,45,12,-10]],
Colors = [RGB::Red, RGB::Green, RGB::Blue]
))
Example
3
>> 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]
))
Example
4
>> 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
))
Example
5
>> plot(plot::data(
Curves, [[5,10,24,-3], [6,5,2,18], [19,45,12,-10]],
Colors = [RGB::Red, RGB::Green, RGB::Blue]
))
Example
6
>> plot(plot::data(
Surface, [[5,10,24,-3], [6,5,2,18], [19,45,12,-10]]
))
Example
7
>> plot(plot::data(Plain,
[[5,10,24,-3], [6,5,2,18], [19,45,12,-10]],
Colors = [RGB::Red, RGB::Red, RGB::Green]
))
plotlib::dataplotplot::data is now part of the new plot library
plot, and its calling
syntax and the return value were changed.Points, LinesPoints and
LinesPoints.