Plot‎ > ‎Histogram‎ > ‎

Histogram colors

Change color of histogram

data = randn(1,1000);
h = histogram(data);
h.FaceColor = [0.7,0.8,1];

Histogram & bar plot

set histogram colors by using bar
  t=-3:0.2:3;
  N=histc(randn(1,1000),t);
  h=bar(t,N,'histc');
  set(h,'FaceColor',[0.7,0.8,1])





see also