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

Home » Public Forums » archive » Postscript trap
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Postscript trap [message #91081] Tue, 02 June 2015 08:42 Go to previous message
David B is currently offline  David B
Messages: 18
Registered: January 2015
Junior Member
Hello all,

so I have been outputting results into a postscript, suppose we have the following


device, file = 'test'+string(format='(I003)', j+1 )+'.ps', $
xsize=width, ysize=height, landscape=0, /color,bits_per_pixel=8, /helvetica, $
encapsulated=0, xoffset=margin, yoffset=margin

I can then use cgtext like this to position any strings:

cgtext, 0.05, 0.65, 'Whatever', /normal, charthick=th, charsize = charsize

Notice I am working in normalised coordinates.

But then if I decide to plot an image like this:

map_pos = [0.58, 0.70, 0.98, 0.98]

cgimage, lcut, position = map_pos, oposition = map_outs, /noerase, /keep_aspect

;Axes
imcontour, lcut, lcuthdr, /NODATA, position = map_outs, /noerase, $
charsize = charsize * 0.75, type = 1, subtitle = ' '

Then I become trapped into the coordinate and positioning system used by the graphic only, I can no longer position my text outside of the image or its axis without doing everything relative to that image.

If I then use a:

cgtext, 0.05, 0.65, 'whatever'

then this text is no longer relative to the page, but relative to the image axes.

How can I escape this problem and return to my 'top level' coordinate system without having to revert to awful device coordinates, or will I just have to shut up and use the device coordinates?

Thanks

David
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: IDL wrapper for ASCOM?
Next Topic: IDL v8 not recognizing bash environment variable

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

Current Time: Wed Oct 08 09:09:11 PDT 2025

Total time taken to generate the page: 0.00368 seconds