help-octave
[Top][All Lists]
Advanced

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

Drawing several plots in one file


From: Jan Trmal
Subject: Drawing several plots in one file
Date: Thu, 26 Feb 2004 20:42:31 +0100
User-agent: KMail/1.5.4

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,
can anybody help me with following problem? I need draw several functions into 
one graph and export in postscript and/or metapost. But when i set term to 
postscript, I get postscript file with several pages. I need just one page in 
that file with all functions graphs.

Example: following octave script will produce file sampling.ps with three 
pages, but I need octave to produce the last pages into the file.

close all;
t = 0:0.001:3;
y = sin(10*t) ./ t;
l = length(t);

gset term mp;
gset output '../grafika/sampling.mp'
hold on;
  plot(t, y, ';;');
  stem(t(1:100:l), y(1:100:l),'bo;;');
hold off;


Hope I had described it intelligibly.
regards,
  Yenda
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAPkwsjj+Gmuy88sgRAtLmAJ9kWvXzFazwpT5aZcOZkEF5Gy4d2QCeKQ19
+I0dJbf2PrfwkVY19e9rjpU=
=B2xb
-----END PGP SIGNATURE-----




-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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