Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.


plot::Point2d(x, y, <a = amin .. amax>, options)
plot::Point2d([x, y], <a = amin .. amax>, options)
plot::Point2d(matrix([x, y]), <a = amin .. amax>, options)


plot::Point2d(x, y) creates a two-dimensional point with the coordinates (x, y). You also can specify the point by a list [x,y] or a vector matrix([x,y]) of its coordinates.


AttributePurposeDefault Value
AffectViewingBoxinfluence of objects on the ViewingBox of a sceneTRUE
AntiAliasedantialiased lines and points?TRUE
Colorthe main colorRGB::MidnightBlue
Framesthe number of frames in an animation50
Legendmakes a legend entry 
LegendTextshort explanatory text for legend 
LegendEntryadd this object to the legend?FALSE
Namethe name of a plot object (for browser and legend) 
ParameterEndend value of the animation parameter 
ParameterNamename of the animation parameter 
ParameterBegininitial value of the animation parameter 
ParameterRangerange of the animation parameter 
PointSizethe size of points1.5
PointColorthe color of pointsRGB::MidnightBlue
PointStylethe presentation style of pointsFilledCircles
Positionpositions of cameras, lights, and text objects[0, 0]
PositionXx-positions of cameras, lights, and text objects0
PositionYy-positions of cameras, lights, and text objects0
TimeEndend time of the animation10.0
TimeBeginstart time of the animation0.0
TimeRangethe real time span of an animation0.0 .. 10.0
Titleobject title 
TitleFontfont of object titles[" sans-serif ", 11]
TitlePositionposition of object titles 
TitleAlignmenthorizontal alignment of titles w.r.t. their coordinatesCenter
TitlePositionXposition of object titles, x component 
TitlePositionYposition of object titles, y component 
VisibleAfterobject visible after this time value 
VisibleBeforeobject visible until this time value 
VisibleFromToobject visible during this time range 
VisibleAfterEndobject visible after its animation time ended?TRUE
VisibleBeforeBeginobject visible before its animation time starts?TRUE


Example 1

Create three points:

p1 := plot::Point2d(1, 3, PointSize = 4*unit::mm);
p2 := plot::Point2d(2, 2, PointSize = 5*unit::mm);
p3 := plot::Point2d(3, 1, Color = RGB::Green, 
                    PointSize = 6*unit::mm);

To have these points displayed, use plot:

plot(p1, p2, p3)

You can set global options directly in the call to plot:

plot(p1, p2, p3, PointStyle = FilledDiamonds)

These options are regarded as the new defaults. This implies that objects having an option set explicitly will silently ignore these options. The green point stays green:

plot(p1, p2, p3, PointStyle = FilledDiamonds, 
     PointColor = RGB::Red)

Example 2

The point position can be animated. As an example, combine a point with a curve that traces the path of the point:

x := t -> sin(3*t);
y := t -> cos(5*t);
p := plot::Point2d([x(t), y(t)], t = 0..2*PI);
c := plot::Curve2d([x(t), y(t)], t = 0..tmax, tmax = 0..2*PI)

plot(c, p, PointSize = 3*unit::mm, LineWidth = 0.5*unit::mm)


x, y

Arithmetical expressions

x, y are equivalent to the attributes Position, PositionX, PositionY.


Animation parameter, specified as a = amin..amax, where amin is the initial parameter value, and amax is the final parameter value.


For reasons of efficiency and clarity in the object browser, avoid generating large numbers of plot::Point2d objects. Useplot::PointList2d instead.

See Also

MuPAD Functions

MuPAD Graphical Primitives

Was this topic helpful?