|
|
|
|
Gallery: Error bars (Python)ExamplesSymmetric Y errors
crv = ChipsCurve()
crv.line.style = "noline"
add_curve("spectrum.fits[residuals][cols x,y,dylo]",crv)
set_curve(["symbol.style","circle","symbol.size",3.0,"symbol.color","red"])
log_scale(X_AXIS)
Errors for both the X and Y axes
tbl = read_file("spectrum.fits[residuals]")
x = get_colvals(tbl,"x")
y = get_colvals(tbl,"y")
dylo = get_colvals(tbl,"dylo")
dyhi = get_colvals(tbl,"dyhi")
dxlo = get_colvals(tbl,"dxlo")
dxhi = get_colvals(tbl,"dxhi")
add_curve(x,y,[dylo,dyhi,dxlo,dxhi])
crv = ChipsCurve()
crv.line.style = "noline"
crv.symbol.style = "none"
crv.err.style = "capped"
set_curve(crv)
limits(X_AXIS,3.0,AUTO)
A histogram with errors and symbols
tbl = read_file("histogram.fits")
xlo = get_colvals(tbl,"xlo")
xhi = get_colvals(tbl,"xhi")
y = get_colvals(tbl,"y")
dylo = get_colvals(tbl,"dylo")
dyhi = get_colvals(tbl,"dyhi")
add_histogram(xlo,xhi,y,dylo,dyhi)
set_histogram(["symbol.style","circle","symbol.size",3.0,"symbol.fill",0])
|
![]() |
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. |