About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2006

URL: http://cxc.harvard.edu/ciao3.4/chips_get_pane.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 chips_get_pane Context: chips

Synopsis

Get the current pane/drawing area.

Syntax

Integer_Type chips_get_pane()
Integer_Type chips_get_drawing_area()

Description

Returns the number of the current pane/drawing area; the two commands are identical. The numbering scheme of the panes is described in "ahelp chips_split". Since there are no parameters, the functions can be called without the trailing "()".

Example 1

  chips> chips_split(2,3,4)
  6
  chips> chips_get_pane
  4
	

Here we create 6 panes, arranged in a 2 by 3 grid, and move to the fourth one. We then check that this has happened with chips_get_pane().

Example 2

  () = chips_split(2,3,4);
  variable pane = chips_get_pane;
  print("Current pane is " + string(pane))
	

As the first example, but done in a S-Lang script. Here the pane number is stored in a S-Lang variable and output to the screen using the Varmm print() function.

Bugs

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

Hardcopy (PDF): A4 | Letter
Last modified: December 2006



The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.