Welcome to iraf.net Saturday, April 27 2024 @ 04:30 AM GMT
ebru |
08/25/2006 08:36AM (Read 11910 times)
|
|
|
Status: offline
Registered: 08/03/2006
Posts: 7
|
after drowing a graph in splot i can not save this plot in a file,
how can i do this.
|
|
|
|
fitz |
08/25/2006 08:36AM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
Depends on what format you want to save the plot in: You can save the raw metacode for graphics using the ":.write <fname>" command, later tasks like GKIMOSAIC can be used to render multiple plots on a screen you can print together at a later time. If what you want is to save say an EPS of the plot then use the 'eps' device, e.g.[code:1:2b501d3667]:.snap eps[/code:1:2b501d3667]Both :.write and :.snap should be followed by a :.gflush to fish the graphics buffer. The snap to EPS will produce a file called 'sgiXXXXX.eps' in the current working directory (where XXXX is some process number).-Mike
|
|
|
|
ebru |
08/25/2006 08:36AM
|
|
|
Status: offline
Registered: 08/03/2006
Posts: 7
|
yesssthat is just what we wantI tired and succededthank you very much
|
|
|
|
MartinS |
08/25/2006 08:36AM
|
|
|
Status: offline
Registered: 10/07/2008
Posts: 2
|
I have a problem with the command ":.snap eps". It actually does create an eps-file, but its size is 0 Byte. Do i have to install a special device before it works? or do i have to reset the printer to any other device?
|
|
|
|
fitz |
08/25/2006 08:36AM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
A zero-sized file usually means that either you didn't do the gflush yet (i.e. a ":.gflush" in cursor mode or a "gflush" on the CL command-line), or more likely that the PATH defined in your .cshrc/.bashrc file doesn't include the directory where the iraf commands were installed (usually /usr/local/bin).Hardcopy plots are done by calling the 'sgidispatch' command from the graphcap file in a spawned shell. This command is installed along with things like 'cl' and 'mkiraf' when you run the install script, however the spawned shell used to run the command isn't a full "login shell". So, if you added e.g. /usr/local/bin to the $path in your .login file it wouldn't have any effect, you need to also add this directory to the path defined by your shell startup files (typically the .cshrc and .bashrc/.profile files depending on whether you use C-shell or Bash). See also https://iraf.net/phpBB2/viewtopic.php?t=86968 for more information.-Mike
|
|
|
|
MartinS |
08/25/2006 08:36AM
|
|
|
Status: offline
Registered: 10/07/2008
Posts: 2
|
Hi. Thanks a lot for this informations. i also found your answer in this topic https://iraf.net/phpBB2/viewtopic.php?t=86909 and the hint with copying the data of the bin.linux-folder into the bin.redhat-folder perfectly worked.
|
|
|
|
| |
|
Content generated in: 0.16 seconds |
|