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

Home » Public Forums » archive » Re: Object graphics and real postscript
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
Re: Object graphics and real postscript [message #19429] Tue, 28 March 2000 00:00
noymer is currently offline  noymer
Messages: 65
Registered: June 1999
Member
In article <MPG.1349819a77d14acc989aac@news.frii.com>,
davidf@dfanning.com (David Fanning) wrote:
> The way I do it (on Windows NT) is like this:
>
> printer = Obj_New('IDLgrPrinter')
> ok = Dialog_PrinterSetup(printer)
>

I don't use object graphics (yet). Is there no analog
in object graphics to the direct graphics instructions
such as:

SET_PLOT, 'PS'
DEVICE, XSize=4.75, YSize=2.95, /Inches, /ENCAPSULATED, $
File=foo.eps
!P.FONT=0

> It is *not*, however, encapsulated PostScript.

You can tweak the drivers so that it is.

> My Windows NT Ghostview, however, has the ability to convert
> a PostScript file to an encapsulated PostScript file.

Only if your PS file contains no page breaks.

> I presume
> this is also available in the UNIX version of Ghostscript.

Yes. It can also be done by hand in your favorite editor:

e.g., first three lines of an EPS file produced by IDL

%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 0 0 342 212
%%Title: Graphics produced by IDL

Note that the first line says EPS and the BB is included.

If if if if if if IF there are no pagebreaks, one can convert
PS to EPS by hand. But it is kind of a kludge, so I only do
it in emergencies.

Andrew
noymer@my-deja.com


Sent via Deja.com http://www.deja.com/
Before you buy.
Re: Object graphics and real postscript [message #19434 is a reply to message #19429] Mon, 27 March 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Nicolas Decoster (Nicolas.Decoster@noveltis.fr ) writes:

> I'm new in IDL and I am currently trying to figure how I can do
> beautyfull graphs using object graphics. It looks like these objects
> allow to draw almost everything I need. But the bad thing is that I did
> not find how I can export my drawing into a postscript file. In fact
> there is a way to create an EPS (using ClipBoard on UNIX), but the
> result is a bitmap ! I want a real postscript with lines, curves, text,
> etc., in postscript language.
>
> Is there a way to do such a thing ?

The way I do it (on Windows NT) is like this:

printer = Obj_New('IDLgrPrinter')
ok = Dialog_PrinterSetup(printer)

I get a dialog for my Lexmark PostScript printer. One of
the options on the dialog is "Send Output to File". With
that checked, it pulls up another dialog that asks me
what the name of the file should be, and I simply write
to the Printer device. I get a nice PostScript file.

It is *not*, however, encapsulated PostScript.

And, unless I am mistaken, the clipboard object also does
not support encapsulated PostScript, but rather just PostScript
if the PostScript keyword is set on the Draw method.

My Windows NT Ghostview, however, has the ability to convert
a PostScript file to an encapsulated PostScript file. I presume
this is also available in the UNIX version of Ghostscript.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: Object graphics and real postscript [message #19435 is a reply to message #19434] Mon, 27 March 2000 00:00 Go to previous message
Ben Tupper is currently offline  Ben Tupper
Messages: 186
Registered: August 1999
Senior Member
Nicolas Decoster wrote:

> Hi !
>
> I'm new in IDL and I am currently trying to figure how I can do
> beautyfull graphs using object graphics. It looks like these objects
> allow to draw almost everything I need. But the bad thing is that I did
> not find how I can export my drawing into a postscript file. In fact
> there is a way to create an EPS (using ClipBoard on UNIX), but the
> result is a bitmap ! I want a real postscript with lines, curves, text,
> etc., in postscript language.
>
> Is there a way to do such a thing ?
>
>

Hello,

It looks to me like the new version of IDL (5.3) permits the
IDLgrClipboard to generate postscript output and vector/bitmap graphics.
I'm not sure about EPS and vector graphics.

Ben

--
Ben Tupper

Bigelow Laboratory for Ocean Science
tupper@seadas.bigelow.org

pemaquidriver@tidewater.net
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: MRI processing
Next Topic: spawn broken on IDL 5.3 / solaris ?

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

Current Time: Wed Oct 08 13:47:38 PDT 2025

Total time taken to generate the page: 0.00677 seconds