[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how send output to postscript file?
From: |
Mario Storti |
Subject: |
Re: how send output to postscript file? |
Date: |
Mon, 12 May 1997 16:23:51 -0300 |
> Hi octave,
>
> simple question: how do I send my plots to a postscript file? - I knew how to
> do
> it in gnuplot but I feel too tired to do this again.
>
> Gerd
This script print.m at the bottom does the job. You call as follows:
> octave:6> print("myfile")
> sending to file: myfile.ps
> octave:7> ls *.ps
> myfile.ps
>
Note, that the term is reset to be the X server, so that afterwards
you continue to have plots on the screen.
================ cut here file: print.m =======================
function print(file);
disp(["sending drawing to PostScript file: " file ".ps"])
set term postscript
eval(["set output \"" file ".ps\""])
replot
set output
set term X
endfunction
=============== cut here =======================================
Hope this helps
Mario
%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%
Mario Alberto Storti | Fax: (54)(42) 55.09.44 |
Grupo de Tecnologia Mecanica | Tel: (54)(42) 55.91.75 |
INTEC, Guemes 3450 - 3000 Santa Fe | Home: Gob. Vera 3161 |
Argentina | (54)(42) 55.00.23|
Reply: address@hidden | |
http://venus.unl.edu.ar/gtm-eng.html |