mankoff writes:
>
> I've been doing maps with IDL for years, both X11 direct and
> PostScript. I've never seen this one before and I'm not sure why, as it
> seems really easy to reproduce (on my system) and I cannot find a
> work-around. Am I losing it?
>
> This code:
>
> map_set,0,0,/iso,/ortho
> tv, map_image(bindgen(16,16),/compress,/bil,xx,yy),xx,yy
> map_horizon
>
> Produces a normal looking circle with a border.
>
> But if I do
>
> set_plot,'ps'
> device, /color, bits=8
> ; insert above code here
> device, /close
> set_plot,'x'
> $gv idl.ps
>
> then I get a circle that is larger and offset from the border produced
> by map_horizon.
>
> { ppc darwin unix Mac OS X 6.0.3 Feb 26 2004 32 32}
>
> Anyone know what is going on?
You are not sizing your image. Try this:
;****************************************************
thisDevice = !D.Name
set_plot,'ps'
device, /color, bits=8
map_set,0,0,/iso,/ortho
tv, map_image(bindgen(16,16),/compress,/bil,xx,yy,xs,ys),$
xx,yy, XSIZE=xs, YSIZE=ys
map_horizon
device, /close
set_plot, thisDevice
;****************************************************
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|