Chandra X-Ray Observatory (CXC)
Skip to the navigation links
Last modified: 27 November 2012

Can I overlay contours on an image?


Contours can be overlain on images, or on other contours, or even curves and histograms. If there is a current plot, then an add_<object> call will add the new data to this plot. It may not however be visible if the axis range and scales of the existing plot and new data are not similar.

If acis.fits and vla.fits both contain WCS information then the following commands will overlay contours from vla.fits onto the acis.fits image (blue lines are positive values and red lines negative ones):

chips> clear()
chips> make_figure("acis.fits", "image", ["colormap", "heat"])
chips> add_contour("vla.fits")
chips> set_contour(["levels", [-0.02, -0.01], "color", "red"])
chips> add_contour("vla.fits")
chips> set_contour(["levels", [0.01, 0.02, 0.03, 0.04, 0.05], "color", "blue"])

The CIAO 4.3 release of ChIPS removed support for displaying the SIN projection.

The ChIPS Gallery

More examples can be seen in the ChIPS Gallery.



Last modified: 27 November 2012
CXC logo

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-2012. All rights reserved.