help-octave
[Top][All Lists]
Advanced

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

Re: problem with plot / hold


From: Javier Arantegui
Subject: Re: problem with plot / hold
Date: Thu, 25 May 2006 13:30:53 +0200
User-agent: KMail/1.9.1

Hi,

I haven't used Matlab in my life, so I don't know if this solution will work 
in Matlab.

El Jueves, 25 de Mayo de 2006 12:16, Matthias Brennwald escribió:
> In Matlab, these commands to exactly what I want. In Octave, however,
> the second plot contains all three data sets instead of only the
> third set.

The solution is very easy:

subplot(2,1,1);     % open up the first plot
plot(rand(1,10));   % plot the first data set to the first plot
hold on             % hold the plot
plot(rand(1,10));   % plot the second data to the first plot

hold off 

subplot(2,1,2);     % open up the second plot
plot(rand(1,10));   % plot the third data set to the second plot

Javier


-- 
Javier Arántegui
Dept. Tecnologia de Alimentos / Dept. of Food Technology
Universitat de Lleida / University of Lleida (Spain)
         
Tel. +34 973702595
Fax  +34 973702596
IM: Jabber - javier.arantegui (AT) jabberes.org
http://www.tecal.udl.es



reply via email to

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