1


draw an object: plot(d:Plotable2d)

This function is generally used to draw d on a "drawing board". Some objects that can be drawn include: Point, Line, Circumference, Segment. If the argument is a List, then all its elements are drawn.

Point, Line, Circumference, Segment, Triangle, Polygonal, Function, Curve or Text_box

It is worth mentioning the case where parameter d is an identifier (variable). If its value is a drawable object then it is drawn, otherwise no action is taken and a warning is returned. Later, if the value of d changes then the drawing is updated to show the new object. You could say that the drawing board remembers the elements that are drawn on it and redraws them if their value changes.

The example below demonstrates this behaviour. If P is defined as point (3,5,0) and we draw it (first block), it appears drawn as point (3,5,0) on the drawing board. If then P takes as its value the point (2,-1), this is the point that appears on the drawing board. Note that this happens without having to use the command plot with point P.





mathsformore.com powered by WIRIS

©2003 maths for more sl. All rights reserved. Legal notice