Need help with saving a filename as a variable - to make and save multiple
plots as independent ps files. After reading from a data file, I wish to
make a plot with xrange from 0 to 40 and save it as filename0-40.ps then the
next plot with xrange from 40 to 80 and save it as filename40-80.ps etc. How
can I do this ? (In Matlab, there is a command called "strcat").
I tried using the following (not working) procedure:
for i=1,40 do begin
step = 75.
set_plot,'PS'
name='bkg-???-VARIABLE-HERE-???.ps'
device, xsize=5, ysize=5, /INCHES, filename= plot,time_bkg,e_bkg,
ystyle=8, xstyle=8, ytitle='zonal', xtitle='time1', $
xmargin = [8,8], ymargin = [4,4], xrange=[tmin, tmin + step]
plot,time_emi,v_z_emi, /noerase, ystyle=4, xstyle=4, line=2, color=13, $
xmargin = [8,8], ymargin = [4,4], xrange=[tmin, tmin + step]
axis, xaxis=1, xtitle='Time',color=13
axis, yaxis=1, ytitle='Zenith V', yrange=[0,1], color=13
device, /close
tmin = tmin + step
endfor
Thanks in advance
Yaj
mail: yajnaval.NOSPAM.@.hotmail.com
|