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

Skip the navigation links
Last modified: 10 December 2007

URL: http://cxc.harvard.edu/chips4.0/gallery/axes_move.sl.html
Hardcopy (PDF): A4 | Letter

Gallery: Moving axes (S-Lang)

Examples


Moving the axes so they go through (0,0)

[ChIPS output]
Postscript version
add_curve("atan.fits[cols X,Y]",{"symbol.style","none"});

set_plot({"leftmargin",0.1,"bottommargin",0.1});

variable cid = ChipsId;
cid.axis = "ax1";
cid.coord_sys = DATA;
move_axis(cid,0.0,0.0,0);
cid = ChipsId;
cid.axis = "ay1";
cid.coord_sys = DATA;
move_axis(cid,0.0,0.0,0);

set_axis({"majortick.style","outside","minortick.style","outside"});

Moving the axes and using a boxed border

[ChIPS output]
Postscript version
variable plt = ChipsPlot;
plt.style = "boxed";
variable crv = ChipsCurve;
crv.symbol.style = "none";
add_curve("atan.fits[cols X,Y]",[plt,crv]);

variable cid = ChipsId;
cid.axis = "ax1";
cid.coord_sys = DATA;
move_axis(cid,0.0,0.0,0);
cid = ChipsId;
cid.axis = "ay1";
cid.coord_sys = DATA;
move_axis(cid,0.0,0.0,0);

set_axis({"majortick.style","outside","minortick.style","outside"});
set_plot({"leftmargin",0.1,"bottommargin",0.1});

Moving the axes with an open border

[ChIPS output]
Postscript version
variable plt = ChipsPlot;
plt.style = "open";
variable crv = ChipsCurve;
crv.symbol.style = "none";
add_curve("atan.fits[cols X,Y]",[plt,crv]);

variable cid = ChipsId;
cid.axis = "ax1";
cid.coord_sys = DATA;
move_axis(cid,0.0,0.0,0);
cid = ChipsId;
cid.axis = "ay1";
cid.coord_sys = DATA;
move_axis(cid,0.0,0.0,0);

set_axis({"majortick.style","outside","minortick.style","outside"});
set_plot({"leftmargin",0.1,"bottommargin",0.1});
Hardcopy (PDF): A4 | Letter
Last modified: 10 December 2007


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.