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

Home » Public Forums » archive » Re: pson + !p.multi + xyouts
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: pson + !p.multi + xyouts [message #57937] Sat, 05 January 2008 11:09
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
metachronist writes:

> I ran into a problem with xyouts with !p.multi and pson..Any
> suggestions??
>
> pson,filename='plot.ps',paper=A4
> !p.multi=[0,1,5]
> ;plot #1
> plot,a,b,xticklen=1,yticklen=1,xgridstyle=1,ygridstyle=1,$
> ycharsize=2.5,xcharsize=1.5
> ;plot #2
> plot,c,d,xticklen=1,yticklen=1,xgridstyle=1,ygridstyle=1,$
> ycharsize=2.5,xcharsize=1.5
> ;....
> ;plot #5
> plot,i,j,xticklen=1,yticklen=1,xgridstyle=1,ygridstyle=1,$
> ycharsize=2.5,xcharsize=1.5
>
> xyouts,.5,0.9.,/normal,charsize=2.,'this is my plot title'
> psoff
> ;--------------
> I am always getting the plot to be positioned may be half way up on
> the left with some part cut off by the left margin..I am trying to
> plot to most of the available area, so the figures come out big and
> easy on the eye.

The point of using !P.MULTI is to allow IDL to take care of
all the details of plot positioning, character sizing, etc.
If you try to do this kind of thing (as you are with your
character sizing) in conjunction *with* !P.MULTI the result
usually turns out to be a mess, as you are discovering.

I'd say if you want to use these large character sizes,
you will probably want to position your plots yourself
with the POSITION keyword. Be sure you use the NOERASE
keyword for all plots except the first one, too.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Previous Topic: pson + !p.multi + xyouts
Next Topic: How to clean the memory?

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

Current Time: Sat Oct 11 10:41:40 PDT 2025

Total time taken to generate the page: 1.12044 seconds