IDL set_plot [message #67943] |
Fri, 04 September 2009 05:46 |
Thibault .
Messages: 9 Registered: September 2009
|
Junior Member |
|
|
Hi, i am trying with IDL to open two set_plot,'ps', one into the
other, but it does not really work:
set_plot, 'ps'
device, filename='~/couplage/models/plots_models/512_W3_z3/
lya_lfs.ps',/color,bits_per_pixel=8
for kmodel=0L,11L do begin
plot,h.x,h.dn/vbox/h.dx
plot,hsflog.x,hsflog.dn/hsflog.dx
set_plot, 'ps'
device, filename='~/couplage/models/plots_models/512_W3_z3/
model_'+strtrim(kmodel,2)+'.ps',/color,bits_per_pixel=8
plot,h.x,h.dn/vbox/h.dx,xtitle='logL!dLy!7a!3!n (erg.s!u-1!
n)',ytitle='dN/dlogL!dLy!7a!3!n (Mpc!u-3!n)',
plot,hsflog.x,hsflog.dn/hsflog.dx/total
(hsflog.dn),psym=10,thick=4.5,charthick=4.5,charsize=1.6,xti tle='log(f!
desc!n)',ytitle='dN/d(log(fesc))',title='Distribution of Ly!7a!3!n
escape fraction',xr=[-5.,0.],/nodata,/ylog,yr=[0.001,100.]
device, /close
endfor
device,/close
The first set_plot is intended to save a plot at each loop's iteration
but i cannot open the corresponding ps file in the end... I think one
part of the issue is that the first device,/close closes the first
set_plot whereas i would like it to close the second one...
Do you know if there exist any documentation about this "entangled
set_plot" problem?
Thanks
|
|
|