help-octave
[Top][All Lists]
Advanced

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

Re: Drawing several plots in one file


From: Jan Trmal
Subject: Re: Drawing several plots in one file
Date: Fri, 27 Feb 2004 09:21:48 +0100
User-agent: KMail/1.5.4

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

Dne pá 27. února 2004 02:02 Henry F. Mollet napsal(a):
> I get one graph in AquaTerm using below statements and saved as pdf and eps
> (see attached). Is it the plot you want?
> Henry

Yes, except the red dots. I have no problem when drawin on x11 terminal (I
gues aqua is something similar, my Octave/Gnuplot doesn't seem to recognize
aqua terminal). The problem is in exporting to postscript or metapost. When I
draw this figure directly to mp terminal, I get three images in the metapost
file. I've solved this drawing first on some other terminal and set mp
terminal and redraw. But isn't any more eficient way?

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

gset term dumb;
hold on;
  plot([1:1:l]./100, y, ';;');
  stem([1:500:l]./100, y(1:500:l),'bo;;');
hold off;

gset term mp latex magnification 1.8 amstex;
gset output '../grafika/sampling.mp'
replot;
close all;

regards,
  Yenda
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAPv4jjj+Gmuy88sgRAhqSAJ9PrzlJ550DL2G/C3YlEKxch/svYACgj+z5
kIyZ0UmHFBb2MOnk+oQAUUg=
=IT/5
-----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]