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

Skip the navigation links
Last modified: 21 September 2006
Hardcopy (PDF): A4 | Letter

How do I make a log-log plot?
How do I return to linear axes?


To set the axes in Sherpa to a log-log scale, use the set_log command:

sherpa> set_log()
sherpa> lplot data

To return to a linear scale:

sherpa> set_lin()
sherpa> lplot data

Or, modify the fields of the appropriate configuration variable:

sherpa> sherpa.dataplot.x_log = 1
sherpa> sherpa.dataplot.y_log = 1
sherpa> lplot data
sherpa> sherpa.fitlot.x_log = 1
sherpa> sherpa.fitplot.y_log = 1
sherpa> lplot fit

To return to a linear scale:

sherpa> sherpa.dataplot.x_log = 0
sherpa> sherpa.dataplot.y_log = 0
sherpa> lplot data
sherpa> sherpa.fitlot.x_log = 0
sherpa> sherpa.fitplot.y_log = 0
sherpa> lplot fit


Hardcopy (PDF): A4 | Letter
Last modified: 21 September 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.