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

Home » Public Forums » archive » Filename as a Variable: Help requested
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Filename as a Variable: Help requested [message #40178] Wed, 14 July 2004 13:42
yaj is currently offline  yaj
Messages: 6
Registered: July 2004
Junior Member
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: fsc_surface update
Next Topic: Re: Filename as a Variable: Help requested

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

Current Time: Thu Oct 09 14:23:43 PDT 2025

Total time taken to generate the page: 0.72245 seconds