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

Home » Public Forums » archive » EPS printouts from IDL 4.0.1
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
EPS printouts from IDL 4.0.1 [message #5569] Wed, 10 January 1996 00:00
Dale Bailey is currently offline  Dale Bailey
Messages: 6
Registered: January 1996
Junior Member
I am a bit new to this so I hope this is not an old question that everyone
knows already. I am using IDL 4.0.1 on a Sparc 20 (Solaris 5.3), and am trying
to produce a plot in PostScript for printing. I want to annotate the graph
(as in the Ref Manual V4 N-Z, Chap 3, pp3-46 ff.). I have found the following:
* If I do not use the keyword /ENCAPSULATED, I get a PostScript file, which
I cannot annotate readily (multiple XYOUTS calls overwrite), but it does print;
* If I use /ENCAPSULATED, I can annotate at will (with XYOUTS), I can view it
with the display tool (ImageTool) in Soalris on the screen, but it won't print
to any of our printers (tried a Xerox 4520MP and a HP);
* I could not see how to position the plot with /ENCAPSULATED, as you can't
use XOFFSET and YOFFSET with /ENCAPSULATED, and the reference manual's
advice to change the size is not really for positioning it seems;
* Once I use the command DEVICE with /ENCAPSUALTED this appears to stay in
effect for the rest of the IDL session, even if I remove /ENCAPSULATED from
the command and re-compile the procedure.

Any suggestions? When I try to print an encapsulated PostScript file produced
by IDL I do get an inital response from the printer, and then nothing - no
error msgs, nothing at all. This all seems rather messy,and inconsistent.

Thanks.

Dale Bailey
MRC Cyclotron Unit
Hammersmith Hospital,
London. UK.
Re: EPS printouts from IDL 4.0.1 [message #5570 is a reply to message #5569] Wed, 10 January 1996 00:00 Go to previous message
f055 is currently offline  f055
Messages: 29
Registered: April 1995
Junior Member
In article <4d02v9$4pk@newshost.rpms.ac.uk>, Dale Bailey <dale> writes:
.....
-* If I do not use the keyword /ENCAPSULATED, I get a PostScript file, which
-I cannot annotate readily (multiple XYOUTS calls overwrite), but it does print;

No idea what's wrong here. Sorry.

-* If I use /ENCAPSULATED, I can annotate at will (with XYOUTS), I can view it
-with the display tool (ImageTool) in Soalris on the screen, but it won't print
-to any of our printers (tried a Xerox 4520MP and a HP);
-* I could not see how to position the plot with /ENCAPSULATED, as you can't
-use XOFFSET and YOFFSET with /ENCAPSULATED, and the reference manual's
-advice to change the size is not really for positioning it seems;

The /ENCAPSULATED option creates an encapsulated postscript file which is
designed for inclusion within another file. It does not, therefore, include
any positioning information (hence XOFFSET and YOFFSET don't work), since
it is up to the other file to decide where to put the picture. If you
don't include it in another file, but try to print it directly, the printer
won't produce anything because it has not been told where to put it.

-* Once I use the command DEVICE with /ENCAPSUALTED this appears to stay in
-effect for the rest of the IDL session, even if I remove /ENCAPSULATED from
-the command and re-compile the procedure.

Try
DEVICE,ENCAPSULATED=0

Cheers, Tim

......................... Dr Tim Osborn . t.osborn@uea.ac.uk
.... ___/.. __ /.. /.. /. Senior Research Associate . phone:01603 592089
... /..... /. /.. /.. /.. Climatic Research Unit . fax: 01603 507784
.. /..... __/.. /.. /... School of Environmental Sciences.
. /..... /\ ... /.. /.... University of East Anglia .
____/.._/..\_..____/..... Norwich NR4 7TJ .
......................... UK .
Re: EPS printouts from IDL 4.0.1 [message #5572 is a reply to message #5569] Wed, 10 January 1996 00:00 Go to previous message
bertin is currently offline  bertin
Messages: 4
Registered: October 1994
Junior Member
In article <4d02v9$4pk@newshost.rpms.ac.uk>, Dale Bailey <dale> wrote:
> * If I use /ENCAPSULATED, I can annotate at will (with XYOUTS), I can view it
> with the display tool (ImageTool) in Soalris on the screen, but it won't
print
> to any of our printers (tried a Xerox 4520MP and a HP);
> * I could not see how to position the plot with /ENCAPSULATED, as you can't
> use XOFFSET and YOFFSET with /ENCAPSULATED, and the reference manual's
> advice to change the size is not really for positioning it seems;

I do not believe that encapsulated PostScript files can be printed directly,
they have to be printed as part of a document. You might want to create a TEX
(or some other) document that uses your encapsulated PostScript file as a
figure. Then print the PostScript file that TEX produces. This would solve
your positioning problem as well.

> * Once I use the command DEVICE with /ENCAPSUALTED this appears to stay in
> effect for the rest of the IDL session, even if I remove /ENCAPSULATED from
> the command and re-compile the procedure.
>

Use DEVICE, ENCAPSULATED=0 to turn it off.

Scott J. Bertin
bertin@euler.cpi.com
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Framegrabbers and IDL
Next Topic: Re: Problems with draw_xsize keyword in widget_control

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

Current Time: Wed Oct 08 15:52:07 PDT 2025

Total time taken to generate the page: 0.00735 seconds