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

Skip the navigation links
Last modified: 20 May 2008
Hardcopy (PDF): A4 | Letter

What items have been created?


The info() (S-Lang, Python help) routine returns a description of what objects exist, and their names. For example,

# Python
  chips> print info() 
  Window [win1]
    Frame [frm1]
      Plot [plot1]   (0.15,0.15)  .. (0.90,0.90)
        Border bottom [bx1]  top [bx2]  left [by1]  right [by2]
        X Axis [ax1]
        Y Axis [ay1]
        Curve [crv1]
        Curve [crv2]
      Line [line1]
      Label [lbl1]

% S-Lang
  chips> info;
  Window [win1]
    Frame [frm1]
      Plot [plot1]   (0.15,0.15)  .. (0.90,0.90)
        Border bottom [bx1]  top [bx2]  left [by1]  right [by2]
        X Axis [ax1]
        Y Axis [ay1]
        Curve [crv1]
        Curve [crv2]
      Line [line1]
      Label [lbl1]

shows that there are two curves, called crv1 and crv2, in a plot that also contains a line and a label. The plot covers most of the frame, from 15 to 90 per cent of both the horizontal and vertical directions.

There are three preference settings which control the presentation of the info() routine. For instance, after setting both info.current and info.depth to true, the output of info() becomes (where bold text indicates reverse-video output):

Window [win1]
  Frame [frm1]
    Plot [plot1]   (0.15,0.15)  .. (0.90,0.90)
      Border bottom [bx1]  top [bx2]  left [by1]  right [by2]
      X Axis [ax1]          d 100    
      Y Axis [ay1]          d 100    
      Curve [crv1]          d 100    
      Curve [crv2]          d 100    
    Line [line1]            d 100    
    Label [lbl1]            d 100    



Hardcopy (PDF): A4 | Letter
Last modified: 20 May 2008


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.