I've been dealing with close_window related issues for a while now,
and I think it's time I bring them to the list.
Often, I'll open a PGPLOT window without naming it (e.g. dev '/xs' at
the command line). Sometimes, it won't close - it doesn't seem to
have a valid window name. Is there another way to get rid of the
window without exiting the PDL shell? close_window(1) I figure is the
default, but since it doesn't always work, is there something else?
Possibly more importantly, I get errors along the lines of
perldl> close_window('PS_output')
Valid window names:
PDL: I cannot switch to window PS_output - no such name
Caught at file (eval 216), line 4, pkg main
perldl>
make_seds(0,YSOKGT3,"colortermYSOKGT3_8-24_i-45",mag8_0,mag24,magi,mag4_5)
YSOKGT3 has been read
%PGPLOT, a PGPLOT PostScript file is already open
PDL: Opening new window (pgopen) failed: -1
Caught at file (eval 127), line 105, pkg main
when I'm plotting to a postscript terminal. The make_seds code is my
own, and if it fails for a non-PGPLOT reason, it's usually in the
middle of a plot command, so it never gets around to closing the
terminal. Yeah, that's a flaw in my code, but I don't have time to
fix it/learn how to fix it at the moment (unless it's really easy - go
ahead and tell me if that's the case =P). Anyway, how do I close a
postscript file that's open for reading? I couldn't find instructions
for that anywhere in the documentation, though I haven't looked as
hard as I sometimes do.
Thanks,
Adam
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl