Re: completely reset PostScript device between plots? [message #30372] |
Sat, 27 April 2002 05:00 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
noymer@socrates.Berkeley.EDU (noymer@socrates.Berkeley.EDU) writes:
> I have a program that generates three separate EPS graphs in IDL
> (5.3) direct graphics. This must be a FAQ but searching Google didn't
> yield anything. You guys have been particularly patient with my
> questions in the past, so I'm going to venture a post.
>
> The PS device is remembering something about prior graphs and it's
> messing up the later graphs. They are the wrong size, etc. I tried
> to mess around with various settings (charsize, etc., etc.) but none
> of them seem to fix the problem. If I skip a prior graph, the problem
> goes away for the subsequent one. Is there not a way just to reset
> totally the PS device between plots without getting lost in resetting
> every little thing? (or just some other way to prevent this problem?)
>
> Just to be perfectly clear, this is not a !P.Multi issue: I have
> three separate graphs in three separate Encapsulated Post Script
> files.
>
> I have flags that indicate which graphs to do. I usually want to
> draw all three graphs, so I do: "FOO, 1,1,1" at the IDL prompt. If I
> want only the middle graph, it would be "FOO, 0,1,0" - and so on. So,
> for now, I can solve the problem by calling the program three separate
> times (1,0,0; 0,1,0; 0,0,1). But there must be a better way. I built
> the flags for reasons other than to work around this problem, and in
> fact before I noticed the problem, so it's not a big deal for the time
> being. But I'd like to know how to do this without the kludge.
I'd try PSConfig. It can do this and much, much more. :-)
http://www.dfanning.com/programs/fsc_psconfig.zip
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|