
plot2d - graphical output of twodimensional objects

Calling sequence:
plot2d([ scene-option ... ,  ]  [ object [ , object-option ... ]   ]  ...)
scene-option  --->  identifier = expr
object        --->  Mode = Curve, values, range
values        --->  [expr_x, expr_y]
range         --->  identifier_1 = [expr_1, expr_2]
object-option --->  identifier = expr

Parameter:
identifier      --   identifier
expr            --   expression
expr_x, expr_y  --   expressions
identifier_1    --   identifier
expr_1, expr_2  --   expressions

Summary:

plot2d is used for the twodimensional output of curves and user-defined lists.
Any number of twodimensional objects can be grouped into one scene and
represented. plot2d describes such a scene.

In a plot2d call a twodimensional curve is described by the following expression
sequence:

          Mode=Curve, [expr_x,expr_y], var=[expr_1,expr_2]

     Here, expr_x and expr_y are any MuPAD expressions, depending on the
     variable var.  These two expressions are used to describe the points of the
     curve, i.e.  the x- and y-coordinates of the curve.  The variable var has to
     be an identifier. The expressions expr_1 and expr_2 describe the lower and
     upper bound of the range, in which the coordinate expressions are to be
     evaluated. Please note that also explicitly defined curves have to be given in
     parameter form. In the expression sequence above the curve is parameterized
     through the variable var.

     Please note that the expressions expr_x and expr_y are evaluated before
     plot2d is called. In many cases this is not desirable, because an argument
! !  of the form MyCurveX(var) is evaluated with the current value of var when
     plot2d is called. This "premature\ evaluation can be prevented by embedding
     the argument in a hold function. Thus, in the example above hold(MyCurveX(var))
     has to be given as the argument.

     A twodimensional user-defined list can be given by the following expression
     sequence:

          Mode = List, point_list

     Here, point_list describes a list of user-defined twodimensional points and
     polygon, which can be created by use of the functions point and polygon .

Apart from the graphical objects many options can be given in a plot2d call.
These influence the representation of the scene and the individual objects. A
default valueexists for each option. If no other value is explicitly given then
the default value is used for the graphical output.  The pre-settings of the

plot2d options can be interactively changed by use of the default window.

Before describing the objects, the options for the whole scene have to be set.
An individual option is to be given in the form:

     identifier = expr

Here, identifier is an identifier for the option and expr is an expression
that gives the value of the option.

The following options are available as attributes of the scene: PlotDevice,
Title, TitlePosition, Axes, Ticks, Arrows, Labeling, ViewingBox, Scaling,
FontFamily, FontStyle, FontSize, LineStyle, LineWidth, ForeGround,
BackGround, PointWidth, PointStyle, Labels and AxesOrigin. For a more
detailed list together with the valid parameters and default values please refer
to table ??In addition the options listed in table ??can also be used for
twodimensional scenes.

After the scene options have been given, the different objects are to be
determined.  Each object is to be specified in a list.  As explained above,
a twodimensional object can either be a curve or a user-defined list.  To
specify this the mode of the object is to be given as first argument, followed

by the expression sequences described above. After these further options can
be chosen in order to influence the graphical representation of the object.
These options are given like the scene options in the form

     identifier = expr.

Title, TitlePosition, Color, Style, Grid and Smoothness are available as
valid options, whereby the specifications of Title, TitlePosition and Color
are identical for all objects. Therefore, they are summerized in table ??The
admissible values for the other options are dependent on the mode of the
object.  For an object with Mode = Curve the options are listed table ??.
The available options for an object with Mode = List are listed in the help
pages of point and polygon .

After executing a plot2d command the graphics appears in the graphics window.
This window has an additional pop-up window  which enables the user to
interactively manipulate the graphics.

All parameters and options can be interactively changed by use of this pop-up
window. It is also possible to insert additional objects in an already existing
scene or delete objects from one.

>>  plot2d(Axes = Corner, Ticks = 0,
          Title = "Graphic Example 1: Plot of sin(u)",
          TitlePosition = Below, Labels = ["x-axis", "y-axis"],
          [Mode = Curve,
               [u, sin(u)], u = [0, 2*PI], Grid = [40]]);

>>  plot2d(Axes = Box, Ticks = 0,
          Title = "Graphic Example 2: Parametric 2D-Plot",
          TitlePosition = Below,
          [Mode = Curve,
               [u*cos(u), u*sin(u)], u = [0, 2*PI], Grid = [50]]);

>>  plot2d(Axes = Box, Ticks = 0, TitlePosition = Below,
          Title = "Graphic Example 3: Three different 2D-Objects",
          [Mode = Curve,
               [sin(u), cos(u)], u = [0, 2*PI],
               Grid = [50], Style = [Points]],
          [Mode = Curve,
               [2*sin(u), cos(u)], u = [0, 2*PI],
               Grid = [50], Style = [Lines]],
          [Mode = Curve,
               [sin(u), 1.5*cos(u)], u = [0, 2*PI],
               Grid = [50], Style = [LinesPoints]]);

See also:  plot3d

