[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Drawing several plots in one file
From: |
Henry F. Mollet |
Subject: |
Re: Drawing several plots in one file |
Date: |
Thu, 26 Feb 2004 17:02:10 -0800 |
User-agent: |
Microsoft-Entourage/10.1.1.2418 |
I get one graph in AquaTerm using below statements and saved as pdf and eps
(see attached). Is it the plot you want?
Henry
octave:57> clear all
octave:58> t = 0:0.001:3;
octave:59> y = sin(10*t) ./ t;
octave:60> l = length(t);
octave:61> gset term aqua 0
octave:62> hold on;
octave:63> plot(t, y, ';;');
octave:64> stem(t(1:100:l), y(1:100:l),'bo;;');
error: `stem' undefined near line 64 column 1
octave:64> help stem
help: sorry, `stem' is not documented % downloaded stem from octave-forge
octave:66> stem(t(1:100:l), y(1:100:l),'bo;;');
on 2/26/04 11:42 AM, Jan Trmal at address@hidden wrote:
> -----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
> -------------------------------------------------------------
Figure 0.pdf
Description: Binary data
Figure 0.eps
Description: Binary data
- Drawing several plots in one file, Jan Trmal, 2004/02/26
- Re: Drawing several plots in one file,
Henry F. Mollet <=
- Re: Drawing several plots in one file, Jan Trmal, 2004/02/27
- Re: Drawing several plots in one file, Paul Kienzle, 2004/02/27
- Re: Drawing several plots in one file, Dirk Eddelbuettel, 2004/02/27
- Re: Drawing several plots in one file, Henry F. Mollet, 2004/02/27
- Re: Drawing several plots in one file, Glenn Golden, 2004/02/27
- Re: Drawing several plots in one file, EPS files, Henry F. Mollet, 2004/02/27
- Re: Drawing several plots in one file, EPS files, Dmitri A. Sergatskov, 2004/02/27
- Re: Drawing several plots in one file, EPS files, Glenn Golden, 2004/02/28
- Re: Drawing several plots in one file, EPS files, Paul Kienzle, 2004/02/28