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 2008

URL: http://cxc.harvard.edu/chips4.1/log_scale.py.html
AHELP for ChIPS 4.1

log_scale

Context: py.chips

Synopsis

Changes the plot axis to log scale.

Syntax

log_scale([ChipsId,] [dimension])

Description

  • ChipsId - an optional ChipsId structure containing values to modify the currency state for the command.
  • dimension - operate on axis in X dimension (X_AXIS), Y dimension (Y_AXIS), or both (XY_AXIS). If no dimension is specified, the command is applied to both axes.

The log_scale command set the axes scale to log for the x and/or y dimensions of a plot. Any data bound to the axis is adjusted appropriately.

The limits of axis are adjusted to positive values if any of them are <= 0.

When the scale of an axis are changed, any axes that are bound to that axis are also changed, including plot border axes; see "ahelp bind_axes" for more information.

Example 1

chips> log_scale(XY_AXIS)

Set the current X and Y axis to log scale.

Example 2

chips> log_scale(X_AXIS)

Set the current X axis to log scale.

Example 3

chips> id = ChipsId()
chips> id.plot = "plot1"
chips> log_scale(ChipsId,XY_AXIS)

These commands change the X and Y axes of the plot called "plot1" to a logarithmic scale. For this example the output of the "info" command is:

Window [win1]
  Frame [frm1]
    Plot [plot1]   (0.15,0.52)  .. (0.90,0.90)
      Border bottom [bx1]  top [bx2]  left [by1]  right [by2]
      X Axis [ax1]
      Y Axis [ay1]
      Curve [crv1]
    Plot [plot2]   (0.15,0.15)  .. (0.90,0.52)
      Border bottom [bx1]  top [bx2]  left [by1]  right [by2]
      X Axis [ax1]
      Y Axis [ay1]
      Curve [crv1]

Bugs

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

Last modified: December 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.