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

Home » Public Forums » archive » Re: passing keywords from cgControl --> psconfig
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
Re: passing keywords from cgControl --> psconfig [message #79604] Wed, 21 March 2012 07:16 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Sebastian Schäfer writes:

> I have a question about cgControl: I use it to directly create ps
> files from my program like this
>
> cgControl, create_ps=string
>
> There are keywords for things like the ps-font etc, but how can I
> change the margins of the plot (how much space is between the plot and
> the margins of the ps-document)? PS_Start has a keyword for that
> (xoffset and yoffset), but cgControl only has XOmargin which controls
> the space between multiple plots.

Allowing the user to change the size and offsets of
the PostScript window would pretty much negate the
entire purpose of cgWindow and (by extension) cgControl,
which it to provide a *resizeable* graphics window
that can be controlled by the user. PostScript output
is by design set to mimic the contents in the resizeable
window.

If you want total control of PostScript output, there
are other tools that allow this (e.g., PS_Start via
PSConfig). Programs that run in cgWindow presumably
already work in PostScript, so using these other tools
is usually as simple as calling PS_Start with the
appropriate keywords (or set the GUI keyword and do
it interactively), running the program, and calling
PS_End. Simple and efficient.

The way I would create larger margins, if that is what
I wanted, would be to use a different POSITION in my
graphics program, so that there was additional space
on the outside of my plot.

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: passing keywords from cgControl --> psconfig [message #79682 is a reply to message #79604] Fri, 23 March 2012 03:49 Go to previous message
Sebastian Schäfer is currently offline  Sebastian Schäfer
Messages: 7
Registered: March 2012
Junior Member
I didn't realize (well, I forgot) that cgwindow already sets those
margins and also uses them in the ps-output. OFC the position-keyword
did the job quite easily, thx!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: external string EXP for MATH_DOIT (ENVI)
Next Topic: Re: external string EXP for MATH_DOIT (ENVI)

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

Current Time: Wed Oct 08 13:47:30 PDT 2025

Total time taken to generate the page: 0.00557 seconds