FW: Plot dubt

Doug Stewart dastew at sympatico.ca
Wed Feb 11 18:11:53 CST 2009


Oscar Bayona Candel wrote:
> Anyone can give me a guide to make a graph using bars and lines in the 
> same plot?
>
> ------------------------------------------------------------------------
> From: oscarbayonacandel at hotmail.com
> To: help-octave at octave.org
> Subject: Plot dubt
> Date: Wed, 11 Feb 2009 15:36:09 +0100
>
> I all I want to use in a same plot a bar/hstogram graph and a line graph
>  
> Imagine I have three vectors:
>  
> X=[11 12 17 14 9 15];
>  
> Y=[12 11 12 14 10 9];
>  
> Z=[6 11 8 10 7 9];
>  
> I want to make a plot with the trhee variables bu the first I want to 
> make an hist or bar chart the other two with lines in the same graph.
>  
> Anyone can please help me, thanks in advance for you help¡¡¡¡ 
>  
>  
> Other question this is secundary a 2-D plot always have two y axis 
> (left and right axis) how can I repet the Y values in both?

did you try:

 bar(X)
 hold on
 plot(Y,'r')
 plot(Z,'y')




More information about the Help-octave mailing list