problems printing to a postscript file [message #38835] |
Wed, 31 March 2004 14:41 |
chettri
Messages: 1 Registered: March 2004
|
Junior Member |
|
|
Here's my IDL Question:
For this question I am sending you a piece of code I wrote
for j = 0, (ntrials - 1L) do begin
light_file_name = string(j, format='("GullLighthouse0", i1, ".eps")')
print, light_file_name
set_plot, 'ps'
device, filename=light_file_name
contour, exp(posterior[j,*,*]), xarray, yarray, nlevels=7
device, /close_file
set_plot, 'win'
endfor ; j loop for printing to postscript
In the code I'm trying to create "ntrials" number of files each one containing
a single contour plot. "posterior[*,*,*]" is created earlier in the program
and using "!p.multi" I was able to plot "posterior[j,*.*]" to a single
graphic window as a contour plot for each "j." However, when I run the
above code, "ntrials-1" eps files are created, "GullLighthouse0*.eps" with the
x and y axes drawn but with no contours. The last file interestingly enough
has the contours and the x, y axes. I'm uncertain as to what I'm doing wrong.
Any help will be appreciated.
|
|
|