On 6/29/07, Kamaraju S Kusumanchi <address@hidden> wrote:
I am able to plot the graphs interactively but cannot export the result to
an eps file. Is this a bug in octave or am I doing something stupid? Is
there any work around for this problem?
The original problem is a bit complicated and big. I am able to reduce the
problem to the small test case below.
$cat using_subplot.m
x=[1:0.1:2];
y = x.^2;
legend('off');
xlabel('x');
ylabel('y');
title('title of the figure');
subplot(1,2,1);
semilogy(x);
subplot(1,2,2);
semilogy(y);
print("test.eps", "-color");
When I run the script, I am getting
$octave -q using_subplot.m
gnuplot> set terminal push;
^
line 0: You can't change the terminal in multiplot mode
gnuplot> set terminal postscript eps enhanced color solid ;
^
line 0: You can't change the terminal in multiplot mode
gnuplot> set output "test.eps";
^
line 0: you can't change the output in multiplot mode
gnuplot> set terminal pop;
^
line 0: You can't change the terminal in multiplot mode
gnuplot> set output;
^
line 0: you can't change the output in multiplot mode
$dpkg -l octave\* gnuplot\* | grep ^ii
ii gnuplot 4.0.0-5 A command-line driven interactive
plotting program
ii gnuplot-doc 4.0.0-5 Documentation for gnuplot
ii gnuplot-nox 4.0.0-5 A command-line driven interactive
plotting program
ii gnuplot-x11 4.0.0-5 X11-terminal driver for gnuplot
ii octave-epstk 2.1-7 GNU Octave encapsulated postscript
toolkit
ii octave2.9 2.9.9-8etch1
GNU Octave language for numerical
computations (2.
ii octave2.9-doc 2.9.9-8etch1 PDF documentation on the GNU Octave
language (2.9
ii octave2.9-forge 2006.07.09+dfsg1-8 Contributed functions from the GNU
Octave Reposito
ii octave2.9-htmldoc 2.9.9-8etch1 HTML documentation on the GNU
Octave language (2.9
ii octave2.9-info 2.9.9-8etch1 GNU Info documentation on the GNU
Octave language
Using Debian Etch (stable), 2.6.18-4-686 kernel.
use
printf('-deps','myfile.eps')
I works for me.
-Muthu