why the output of PS and Screen arenot the same? [message #29086] |
Thu, 31 January 2002 14:45  |
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 #29162 is a reply to message #29086] |
Fri, 01 February 2002 11:07  |
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  |
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/
|
|
|