Function:
changecoords2d - change coordinate systems in a 2d plot
Calling Sequences:
changecoords2d(p, coord);
changecoords2d(p, coords = coord);
Parameters:
p -
a two-dimensional plot structure
coord -
the name of a two-dimensional coordinate system, or
reverse(c)
if
c
is the name of a two-dimensional coordinate system.
Description:
-
This is a replacement for
plots[changecoords]
for two-dimensional coordinate systems, to correct bugs in that procedure in Maple 6.
-
The two-dimensional plot data structure
p
may be produced by any of the commands that plot two-dimensional graphs, with any plotting options allowed by those commands. Note that any plot options other than coords must be part of the command that produces
p
, not an option to
changecoords2d
.
-
coord
may be any of the available two-dimensional coordinate systems:
bipolar
,
cardioid
,
cartesian
,
cassinian
,
elliptic
,
hyperbolic
,
invcassinian
,
invelliptic
,
logarithmic
,
logcosh
,
maxwell
,
parabolic
,
polar
,
rose
,
tangent
, or a system defined using
addcoords
. The transformations used are given in the
coords
help page.
-
With the construction
reverse(c)
, the roles of the two coordinates are reversed. Thus while
changecoords2d(p, polar)
produces a plot where the
and
coordinates of the original plot
p
are interpreted as polar coordinates
and
respectively, with
reverse(polar)
they are interpreted as
and
respectively.
-
Some of the coordinate systems have from one to three parameters, which may be specified in functional form, e.g.
logcosh(2)
. If parameter values are not specified, the defaults are 1, 1/2, and 1/3 for the three parameters.
-
The output is a two-dimensional plot data structure which may be displayed directly or assigned to a variable, perhaps modified further, and displayed later.
-
This function is part of the
Maple Advisor Database
library.
Examples:
>
changecoords2d(plot(cos(x), x=-Pi/2..Pi/2, scaling = constrained), reverse(polar));
>
with(plots):
changecoords2d(pointplot([seq([1,Pi/10*i],i=0..19)], style=line), polar);
Warning, the name changecoords has been redefined
>
changecoords2d(implicitplot(x=y,x=0..1,y=0..1), logcosh);
>
changecoords2d(contourplot(x-y,x=0..1,y=0..1), logcosh);
>
changecoords2d(plot(1, x=0..1), logcosh(2));