Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Problem with ti...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 5685 of 5728
Post > Topic >>

Problem with titles on a multi plot ps file

by Justus Skorps <jussa@[EMAIL PROTECTED] > Apr 28, 2008 at 12:53 AM

Hi all,

I have a little problem with multiple plots on a ps file:

In my program I am creating two multi plot ps files, both with 3
columns and 5 rows. On the first ps file I am using the plot command
for each subplot, on the second one the shade_surf command (with
az=0,ax=90 for a top view). Both ps files are opened with the same
parameters (despite the name of course) and I am using the !Y.OMargin
to get some space above all plots for an overall title.

For the first ps file everything works fine, I can set an individual
title for each subplot and these titles are plotted correctly. But for
the second file (with the shade_surf command) the titles are
truncated, only the points in the bottom are printed, ob the exact
same position as in the first file. And I cannot understand why the
upper points are not printed, it looks like they are overpainted with
a white box. It does not matter how many subplot I really plot, even
if only one is printed the title is truncated.

Anybody can give me a hint?

Thanx in advance,
Justus

Test code:
pro testplot


psfilename1 = 'X:\js\testmax.ps'
psfilename2 = 'X:\js\testsum.ps'

set_plot,'PS'

; first ps file

!Y.OMargin=[0,4.0]
device,filename=psfilename1,xsize=19.0,xoffset=1.0,yoffset=1.0,ysize=27.7,inches=0,bits_per_pixel=8
xyouts,0.5,0.98,alignment=0.5,'main title',/normal

!p.multi[1]=3
!p.multi[2]=5

x=findgen(150)/10
y=x^2

for i=0,14 do begin
	!P.multi[0]=15-i			;select subplot
	plot,x,y,title='subtitle',yrange=[0,260],ystyle=1
endfor

device,/close

; second ps file

!Y.OMargin=[0,4.0]
device,filename=psfilename2,xsize=19.0,xoffset=1.0,yoffset=1.0,ysize=27.7,inches=0,bits_per_pixel=8
xyouts,0.5,0.98,alignment=0.5,'main title',/normal

!p.multi[1]=3
!p.multi[2]=5

t=dist(300,400)

for i=0,14 do begin
	!P.multi[0]=15-i
	shade_surf,t,sh = bytscl(t,top=255,MIN=0,MAX=255,/
nan),az=0,ax=90,title='subtitle',ystyle=4,xstyle=4,zstyle=4
endfor

device,/close

end




 4 Posts in Topic:
Problem with titles on a multi plot ps file
Justus Skorps <jussa@[  2008-04-28 00:53:13 
Re: Problem with titles on a multi plot ps file
Justus Skorps <jussa@[  2008-04-28 01:59:12 
Re: Problem with titles on a multi plot ps file
David Fanning <news@[E  2008-04-28 07:54:38 
Re: Problem with titles on a multi plot ps file
Justus Skorps <jussa@[  2008-04-29 07:40:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun May 11 19:00:09 CDT 2008.