Drawing in SAOImage/DS9
SAOImageDS9 can be used to quickly draw or display things in SAOImage/DS9.
For instance, assuming img is a 2-dimensional Julia array, to display img as an image in SAOImage/DS9, call:
ds9draw(img; kwds...)The main difference with ds9set(img) is that a number of keywords are supported:
Use keyword
frameto specify the frame number.Use keyword
cmapto specify the name of the colormap. For instance,cmap="gist_stern".Use keyword
zoomto specify the zoom factor.Use keywords
minand/ormaxto specify the scale limits.
The ds9draw method can be called with other kinds of arguments such as instances (or array or tuple) of TwoDimensional.Point to draw point(s) or instances of TwoDimensional.BoundingBox to draw rectangle(s).