map_set,xmargin=5,ymargin=5,/miller_cylindrical,/noerase
scaledData = BytScl(tnmax3,top=18,MIN=minvalue, max=maxvalue,/nan)
DEVICE, DECOMPOSED = 0
loadct, 3, ncolors=22
;TVLCT, R,G,B,255 ,/get
result=map_image(scaledData,startx,starty,compress=1,$
min_value=minvalue, missing=255)
scaledData[missing]=255
tv, result, 0,starty
There part of my code. What is happening is the scaled data does not seem to match up with the projected image. if i remove the margins, the map ALMOST fits, but i need to add the margins so i can add a header and colorbar. Why is it not scaling properly? whes the margins are put in, in scales slightly, but not as much as the projected map does. Any ideas?
|