I recently upgraded to version 9.2. Therefore I should be able to export graphs to PDF. I also installed Ghostscript.
When I want to export a grafik to pdf by using for example the following lines of code:
Code: Select all
gsave(format=pdf) "IRF_Mopo*.pdf"
spgraph(vfields=2,hfields=1, header="Test Export")
graph(nodates,number=0,header="test1") 5
# upper90(4,4) / 3
# upper68(4,4) / 2
# irf(4,4) / 1
# lower68(4,4) / 2
# lower90(4,4) / 3
graph(nodates,number=0,header="test2") 5
# upper90(1,4) / 3
# upper68(1,4) / 2
# irf(1,4) / 1
# lower68(1,4) / 2
# lower90(1,4) / 3
spgraph(done)
This is built in to the Macintosh and UNIX. On Windows, you need to set an environment variable called GHOSTSCRIPT with the full path for the executable for (the console version) of GhostScript, such as with (the operating system command
SET GHOSTSCRIPT=C:\PROGRAM FILES\GS\GS9.16\BIN\GSWIN64C
However That does not work ... When I use SET GHOSTSCRIPT=C:\PROGRAM FILES\GS\GS9.16\BIN\GSWIN64C I get the following error:
## SX22. Expected Type SERIES[REAL], Got STRING Instead
>>>>SET GHOSTSCRIPT <<<<
I somehow need to tell RATS that ghostscript is installed and the location where to find it... How do I do that?
Thanks
Best
Jules