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

Home » Public Forums » archive » Coyote Graphics PS/PDF output size/orientation
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: Coyote Graphics PS/PDF output size/orientation [message #85510 is a reply to message #85503] Wed, 14 August 2013 05:59 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Paul Levine writes:

> Also, I am quite interested in your take on the PNG files I wound up
> with, where the pixel size of the files was quite different from the
> xwsize and ywsize specified, and some axis titles and labels were cut
> off. I don't how related this is to the PDF issue, so if you can only
> deal with one of these issues at a time, then perhaps you need to pass
> the other one off to Coyote and see where he gets with it ;-)

Unfortunately, as much as I try, conversion from IDL's graphics window
output to PostScript output is not *exactly* WYSIWYG. One of the
difficulties is on the right-hand side of plots. The default IDL
position of plots does not leave enough room in the graphics "window" to
accommodate axis annotation, etc. This is why part of your plot is
getting cut off. Some of it extends outside this "window".

I have tried to give Coyote Graphics routines a better default position
in the window (ie, position = [0.125, 0.125, 0.925, 0.9]), but there is
no way for me to know when I do this whether or not you are going to do
something different on the right-hand side of the plot. You have to be
responsible for that yourself.

The solution is simple enough: use the POSITION keyword on your plot
command to give yourself a little more space on the right-hand side of
the plot to accommodate axis annotation:

cgPlot, data, Position=[0.125, 0.125, 0.85, 0.925], ...

Cheers,

David

P.S. I had to figure this out on my own, since Coyote won't be awake for
another 3-4 more hours, at least.

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: peeling away layers
Next Topic: arithmetic operation on array

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

Current Time: Fri Oct 10 18:14:25 PDT 2025

Total time taken to generate the page: 1.35309 seconds