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

Home » Public Forums » archive » why the output of PS and Screen arenot the same?
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
why the output of PS and Screen arenot the same? [message #29086] Thu, 31 January 2002 14:45 Go to next message
tom is currently offline  tom
Messages: 28
Registered: April 1995
Junior Member
Hi,sometimes the output of PS(set_plot,'ps') is not the same as what I see
on the screen(set_plot,'win'), for example, the text may has different
position and size. How to solve the problem? Would you please tell me the
plot format you used for print? Apprieciate your answers. Tom
Re: why the output of PS and Screen arenot the same? [message #29161 is a reply to message #29086] Fri, 01 February 2002 11:12 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Liam E. Gumley (Liam.Gumley@ssec.wisc.edu) writes:

> People have written whole book chapters about this problem!

Heck, whole careers have been built around it!

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
Re: why the output of PS and Screen arenot the same? [message #29162 is a reply to message #29086] Fri, 01 February 2002 11:07 Go to previous message
Paul van Delst is currently offline  Paul van Delst
Messages: 364
Registered: March 1997
Senior Member
"Liam E. Gumley" wrote:
>
> tom wrote:
>> Hi,sometimes the output of PS(set_plot,'ps') is not the same as what I see
>> on the screen(set_plot,'win'), for example, the text may has different
>> position and size. How to solve the problem? Would you please tell me the
>> plot format you used for print? Apprieciate your answers. Tom
>
> People have written whole book chapters about this problem!
>
> That said, you might get quick satisfaction with the PSON and PSOFF
> procedures I wrote as examples for my book. You can get them as part of
> the sample programs package at
>
> http://www.gumley.com/PIP/About_Book.html

I use Liam's pson and psoff for this all the time. Nice and simple to use.

paulv

--
Paul van Delst Religious and cultural
CIMSS @ NOAA/NCEP purity is a fundamentalist
Ph: (301)763-8000 x7274 fantasy
Fax:(301)763-8545 V.S.Naipaul
Re: why the output of PS and Screen arenot the same? [message #29163 is a reply to message #29086] Fri, 01 February 2002 08:49 Go to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
tom wrote:
> Hi,sometimes the output of PS(set_plot,'ps') is not the same as what I see
> on the screen(set_plot,'win'), for example, the text may has different
> position and size. How to solve the problem? Would you please tell me the
> plot format you used for print? Apprieciate your answers. Tom

People have written whole book chapters about this problem!

That said, you might get quick satisfaction with the PSON and PSOFF
procedures I wrote as examples for my book. You can get them as part of
the sample programs package at

http://www.gumley.com/PIP/About_Book.html

Once you have these two procedures installed, you can do something like
this:

;- Create a test plot in a graphics window
window, /free
x = findgen(200) * 0.1
plot, x, sin(x), title='A Test Plot'

;- Start PostScript output
pson, filename='testplot.ps'

;- Redo the plot
plot, x, sin(x), title='A Test Plot'

;- End PostScript output
psoff

The PostScript file testplot.ps should contain a plot with the same
aspect ratio and text size as the version in the graphics window. If you
want to know the details of how PSON and PSOFF work, get yourself a copy
of "Practical IDL Programming".

Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Logical vs. Bitwise boolean operators
Next Topic: Re: String length when FONT=1

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

Current Time: Wed Oct 08 15:17:35 PDT 2025

Total time taken to generate the page: 0.75357 seconds