Last modified: December 2013

URL: https://cxc.cfa.harvard.edu/chips/ahelp/current_point.html
Jump to: Description · Examples · Bugs · See Also


AHELP for CIAO 4.11 ChIPS v1

current_point

Context: points

Synopsis

Set the specified point as current.

Syntax

current_point(id)

Description

The function arguments.

Argument Description
id A ChipsId structure identifying the item, or a string containing the name of the object.

The current_point command sets the point indicated by the argument as the current point; see "ahelp currency" for general information on currency.

Use the info_current command to retrieve a list of all the current items in the ChIPS session, as shown below.


Examples

Example 1

chips> id = ChipsId()
chips> add_point(0.4, 0.5, "id=sq style=square")
chips> add_point(0.8, 0.2, "id=tri style=uptriangle size=12")
chips> add_point(0.6, 0.5, "style=plus")
chips> id.point = "sq"
chips> current_point(id)
chips> info_current()

Three points are created; the second point is current after it is created. The id.point command sets the point value of the ChipsId structure to the first point, then the current_point command makes that point current.

The output of info_current for this session is:

Window [win1]
  Frame [frm1]
    Plot [plot1]
      Point [sq]
    Coord Sys [Plot Normalized]

Example 2

chips> add_point(0.4, 0.5, "id=sq style=square")
chips> add_point(0.8, 0.2, "id=tri style=uptriangle size=12")
chips> add_point(0.6, 0.5, "style=plus")
chips> current_point("sq")

Three points are created. After the second point is created, it is current. The current_point command then sets the first point as the current point.

Example 3

chips> add_point(0.4, 0.5, "id=sq style=square")
chips> add_point(0.6, 0.5, "style=plus")
chips> current_point("all")

Two points are created. After the second point is created, it is current. The current_point command then makes all points current.


Bugs

See the bugs pages on the ChIPS website for an up-to-date listing of known bugs.

See Also

concepts
chipsid, currency
points
add_point, delete_point, display_point, get_point, hide_point, move_point, set_point, shuffle_point