Re: pson + !p.multi + xyouts [message #57937] |
Sat, 05 January 2008 11:09 |
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.")
|
|
|