help-octave
[Top][All Lists]
Advanced

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

Re: bar and hist


From: kahacjde
Subject: Re: bar and hist
Date: Wed, 31 Oct 2007 08:44:50 -0700 (PDT)


Evan-4 wrote:
> 
> version 2.9.15
> 
> bar doesn't support the style argument as the help document says, is
> this because it hasn't been implemented or a bug?
> 
> how to change the filling color when using hist?
> 
> thanks in advance
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
> 
> 

Hello,

bar and hist are using 'patch' graphic objects now. You have to change the
patch properties like this:

h = bar(rand(10,1));
set(h,'FaceColor','yellow','EdgeColor',[0.2 0.7 0.4]);

or in one line

bar(rand(10,1), 'FaceColor', 'yellow', 'EdgeColor', [0.2 0.7 0.4]);

Kai
-- 
View this message in context: 
http://www.nabble.com/bar-and-hist-tf4725661.html#a13512258
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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