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_zrange.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 chips_get_zrange Context: chips

Synopsis

Get the upper and/or lower z-axis limits of the plot

Syntax

Integer_Type chips_get_zrange()

Description

Determines the limits of the plot's z-axis. On success, two float values will be returned. Two NULLs are returned on error (e.g. if there is no drawing area). Note that the limits returned are those used internally by ChIPS to draw the plot axes, so they may not match the numeric limits of the plotted data.

To return either the minimum or the maximum value, the syntax

  (zmin,) = chips_get_zrange()
  (,zmax) = chips_get_zrange()

can be used.

The limits may be adjusted with chips_set_zrange.

Example 1

  chips> surface tabbed.data 0 150
  chips> (zmin,zmax) = chips_get_zrange()
  chips> vmessage("zmin = %f, zmax = %f",zmin,zmax)
  zmin = 0.000000, zmax = 150.000000
	

The minimum and maximum values of the z-axis for a surface plot are printed out.

Example 2

  chips> surface tabbed.data 0 100
  chips> (,rmax) = chips_get_zrange()
  chips> print(rmax)                 
  100
	

Here only the upper (maximum) z-axis limit was desired.

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.