help-octave
[Top][All Lists]
Advanced

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

Re: FW: Plot dubt


From: Doug Stewart
Subject: Re: FW: Plot dubt
Date: Wed, 11 Feb 2009 19:11:53 -0500
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

Oscar Bayona Candel wrote:
Anyone can give me a guide to make a graph using bars and lines in the same plot?

------------------------------------------------------------------------
From: address@hidden
To: address@hidden
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')




reply via email to

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