help-octave
[Top][All Lists]
Advanced

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

Re: different color bar graph


From: Doug Stewart
Subject: Re: different color bar graph
Date: Tue, 18 Jun 2019 04:54:03 -0400



On Tue, Jun 18, 2019 at 1:00 AM shivax via Help-octave <address@hidden> wrote:
and this :

https://gyazo.com/5c2ba1d72734c42c03033c13b883757f


the distant must to be egual!



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



try this

clear
T=[3 4 -1 9 4 1]
neg=find(T<=0)
pos=find(T>0)

tt(1,pos)=T(pos)
tt(2,neg)=T(neg)
bar(tt(1,:),'r')
hold( 'on')
bar(tt(2,:))



--
DASCertificate for 206392


reply via email to

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