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

Home » Public Forums » archive » Re: Updates to Markwardt Library
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Updates to Markwardt Library [message #78833 is a reply to message #78832] Wed, 21 December 2011 20:50 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Dec 21, 10:56 pm, David Fanning <n...@dfanning.com> wrote:
> Craig Markwardt writes:
>> Dang, it's a tough crowd in here tonight :-)
>
> I guess! :-)
>
> I was curious about your PXPERFECT routine, because
> I've had my own struggles getting PostScript output
> to look like what is on the display. I just ran a
> test.
>
> I compared the output of this command:
>
>    cgplot, cgdemodata(1), xtitle='Time (Seconds)',
>      ytitle='Signal Strength', $
>      position=[0.125, 0.125, 0.95, 0.85], $
>      title='Experiment 10A3B', output='test.ps'
>
> With this (I think I did this correctly):
>
>   thisDevice = !D.Name
>   ps_extra = pxperfect(/landscape, thick_factor=tf)
>   set_plot, 'ps'
>   device, _extra=ps_extra
>   cgplot, cgdemodata(1), xtitle='Time (Seconds)',
>      ytitle='Signal Strength', $
>      position=[0.125, 0.125, 0.95, 0.85], $
>      title='Experiment 10A3B', thick=tf
>   device, /close
>   set_plot, thisDevice
>
> These commands should be duplicating what I would see
> in a normal 640 by 512 graphics window:
>
>    cgDisplay, 640, 512
>
> I see almost no difference in the character size,
> interestingly enough. But I do notice that your
> plot is a dfferent size than mine is.
>
> If I print and measure my plot, it is 20x14cm. Your
> plot is 18.5x13. These ratios are 0.7 and 0.702.
> The ratio of the window is 512/640 = 0.8. Are we
> both wrong? :-)

David, sometime in the late unpleasantness, IDL started to defaulting
to 640x389 for plot window dimensions. I think you are seeing this
ratio.

If I explictly make a window 640x512, then PXPERFECT and your CGPLOT
both make Postscript graphic pages of the right size ratios.

Craig
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: mpfit question
Next Topic: Problem with the astron database on Mac OS X

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

Current Time: Thu Oct 09 22:48:22 PDT 2025

Total time taken to generate the page: 0.88246 seconds