point_type SciMax Toolbox points_joined

SciMax Toolbox >> points

points

Maxima Graphic object

Calling Sequence

points ([[x1,y1], [x2,y2],...])
points([x1,x2,...],[y1,y2,...])
points([y1,y2,...])
points([[x1,y1,z1],[x2,y2,z2],...])
points([x1,x2,...],[y1,y2,...],[z1,z2,...])

Description

Draws points in 2D and 3D.

This object is affected by the following graphic options: point_size, point_type, points_joined, line_width, key, line_type and color.

2D

points ([[x1,y1], [x2,y2],...]) or points ([x1,x2,...], [y1,y2,...]) plots points [x1,y1], [x2,y2], etc. If abscissas are not given, they are set to consecutive positive integers, so that points ([y1,y2,...]) draws points [1,y1], [2,y2], etc.

Example:

(%i1) load(draw)$
(%i2) draw2d(
        key = "Small points",
        points(makelist([random(20),random(50)],k,1,10)),
        point_type    = circle,
        point_size    = 3,
        points_joined = true,
        key           = "Great points",
        points(makelist(k,k,1,20),makelist(random(30),k,1,20)),
        point_type    = filled_down_triangle,
        key           = "Automatic abscissas",
        color         = red,
        points([2,12,8]))$

3D

points ([[x1,y1,z1], [x2,y2,z2],...]) or points ([x1,x2,...], [y1,y2,...], [z1,z2,...]) plots points [x1,y1,z1], [x2,y2,z2], etc.

Examples:

One tridimensional sample,

(%i1) load(draw)$
(%i2) load (numericalio)$
(%i3) s2 : read_matrix (file_search ("wind.data"))$
(%i4) draw3d(title = "Daily average wind speeds",
             point_size = 2,
             points(args(submatrix (s2, 4, 5))) )$

Two tridimensional samples,

(%i1) load(draw)$
(%i2) load (numericalio)$
(%i3) s2 : read_matrix (file_search ("wind.data"))$
(%i4) draw3d(
         title = "Daily average wind speeds. Two data sets",
         point_size = 2,
         key        = "Sample from stations 1, 2 and 3",
         points(args(submatrix (s2, 4, 5))),
         point_type = 4,
         key        = "Sample from stations 1, 4 and 5",
         points(args(submatrix (s2, 2, 3))) )$
point_type SciMax Toolbox points_joined