help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cannot export the plot to eps file


From: Kamaraju S Kusumanchi
Subject: cannot export the plot to eps file
Date: Fri, 29 Jun 2007 23:21:56 -0400
User-agent: KNode/0.10.4

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.


thanks
raju
-- 
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]