Unable to Save Plots to File #1219
Replies: 2 comments
-
I'm not a windows user, but Stack Overflow seems to have a page on the .bashrc equivalent for Windows - perhaps this will help: |
Beta Was this translation helpful? Give feedback.
-
hello @DannBoMambo I can reproduce the error on a windows 10 (virtual machine on my linux). The file 'test.ps' is however in the current directory, and is good. And the command window does not crash shortly after (as far as I can test). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've been running into this error:
% Warning: failed to create temporary PostScript file
whenever I attempt to save a plot to a file, either through Device or cgPlot. It does generate an incomplete postscript file (i.e. missing graphics like cgText, cgColorfill, cgLegend etc) in the active directory. The command line window crashes shortly after.Even something as simple as:
set_plot,'ps'
device,filename='test.ps',xsize=16,ysize=16,/color,decomposed=0
x=findgen(30)
plot,x,x*x
device,/close
returns this error.
For a bit of background, I was a frequent IDL user a few years ago and recently have setup GDL on my windows machine. I have the coyote and astrolib libraries installed in C:/Program Files/gnudatalanguage/share/gnudatalanguage/lib.
Is there some kind of environment variable that sets the path of where it would try to save temporary files? Is Windows blocking this action somehow?
On a related note, back when I used IDL on a Linux machine I could set the env. vars using .bashrc, but I haven't had much luck figuring out how to do that with Windows so that it's automatically done every login.
Beta Was this translation helpful? Give feedback.
All reactions