pro tvplot2, a, ASPECT = aspect,$ log=log,levels0=levels0,smooth0=smooth0,title0=title0,$ nonew=nonew,noerase0=noerase0,noaxis=noaxis,xx0=xx0,yy0=yy0,$ xtitle0=xtitle0,ytitle0=ytitle0,collev=collev ;+ ; NAME: ; tvplot2 ; ; PURPOSE: ; Overlay an image and a contour plot. ; ; CATEGORY: ; General graphics. ; ; CALLING SEQUENCE: ; tvplot2, A ; ; INPUTS: ; A: The two-dimensional array to display. ; ; KEYWORD PARAMETERS: ; ASPECT: Set this keyword to retain the image's aspect ratio. ; Square pixels are assumed. ; ; LOG: LOG PLOT of IMAGE>log(0) retain correct aspect ratio' print,'title,xtitle,ytitle -> title and labels' print,'xx=xxvalues = x-axis values= table of size nx (def=findgen(nx) where nx = image x-size)' print,'yy=yyvalues = y-axis values= table of size ny (def=findgen(ny) where ny = image y-size)' print,'example: image=512*512 pix-size=pix, center xc,yc xx=(findgen(512)-xc)*pix' print,'noaxis =1 ei xy 2-ei y 3-ei x akselia' print,'levels=levels overplot contour levels' print,'collev = colors of levels' return endif on_error,2 ;Return to caller if an error occurs sz = size(a) ;Size of image if sz[0] lt 2 then message, 'Parameter not 2D' if(not keyword_set(nonew)) then nwin_hs title='' if(keyword_set(title0)) then title=title0 adens=a if(keyword_set(log)) then adens=alog(a>log(0)