Set the specified curve as current.
current_curve( ChipsId );
current_curve( "curve_id" );
current_curve( "all" );
The current_curve command sets the curve indicated by the
argument as the current curve; see
"ahelp currency"
for general information on currency.
-
ChipsId - an optional ChipsId structure containing
values to modify the currency state for the command.
-
curve_id - identification tag given to each object that
is created; use this to select a specific curve.
-
all - sets all curves to be current.
Use the info_current command to retrieve a list of all the
current items in the ChIPS session, as shown in Example 1.
chips> id = ChipsId();
chips> add_curve([-4,0,4],[0,5,10]);
chips> add_curve([-4:4],[-4:4]^2,"id=parabola");
chips> id.curve = "crv1";
chips> current_curve(id);
chips> info_current();
Two curves are created; the second curve is current after
it is created. The id.curve command sets the curve value
of the ChipsId structure to the first curve, which has the
id "crv1" by default. The current_curve command makes
that curve current.
The output of info_current for this session is:
Window [win1]
Frame [frm1]
Plot [plot1]
X Axis [ax1]
Y Axis [ay1]
Curve [crv1]
Coord Sys [Data]
Coord Sys ID [plot1_ax1ay1]
chips> add_curve([-4,0,4],[0,5,10], "id=diag");
chips> add_curve([-4:4],[-4:4]^2,"id=parabola");
chips> current_curve("diag");
Two curves are created. After the second curve
is created, it is current. The current_curve command then
sets the first curve as the current curve.
chips> add_curve([-23,4,15],[10,8,11]);
chips> add_curve([-4,0,4],[0,5,10]);
chips> current_curve("all");
Two curves are created. After the second curve
is created, it is current. The current_curve command then
makes all curves current.
|