comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Map Alignment in PS
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Map Alignment in PS [message #50201] Mon, 18 September 2006 14:07
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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.")
[Message index]
 
Read Message
Previous Topic: Map Alignment in PS
Next Topic: output as eps instead of ps?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 07:29:59 PDT 2025

Total time taken to generate the page: 0.95974 seconds