pro boxit,x,y,sidx,sidy,bin=bin,color=color ;+ ;NAME: ; boxit ;PURPOSE: ; To draw a box on the screen at an absolute location. ;CALLING SEQUENCE: ; boxit,x,y ; boxit,x,y,64 ; boxit,x,y,64,128,bin=4,color=200 ;INPUT: ; x, y - screen coordinates of the lower left corner of box ;OPTIONAL INPUT: ; sidx - Number of pixels on x side (if not passed, the ; default is 64 ; sidy - Number of pixels on y side (if not passed, the ; default is same as x ;KEYWORDS ; color - Specifies color of box. Default is color = 255 ; bin = Display rebin factor. Default is bin=1 ;HISTORY: ; Written 18-Oct-92 by L. Acton ;- if n_elements(sidx) eq 0 then sidx = 64 if n_elements(sidy) eq 0 then sidy = sidx if keyword_set(color) eq 0 then color=255 if keyword_set(bin) eq 0 then bin=1 x0 = x*bin y0 = y*bin x1 = x0 + sidx*bin + 1 y1 = y0 + sidy*bin + 1 plots, [x0,x0,x1,x1,x0], [y0,y1,y1,y0,y0] ,color=color ,/device end