Hi there,
Is there a nice way to depict three histograms of overallaping data with grayscale in a single graph?
I am really not looking for any specific thing. I just want to be able to publish that without using any color. Anything else goes. Could I for example add some kind of a pattern on the bins? Any dots or lines? Maybe that would not be nice too. Any ideas?
I have done the following but I guess it does not seem so nice.
Run the following to see what I mean.
Thank you.
clear all
close all
clc
x1=normrnd(0,1,100,1)
x2=normrnd(1,1,100,1)
x3=normrnd(2,1,100,1)
hist(x1);
hold on
hist(x2)
hist(x3)
ch = get(gca,'chi')
%set(ch(2),'facec',[0 0 1]) % The facecolor
%set(ch(2),'edgec',[0 0 1]) % The edgecolor
fa=0.8;
set(ch(1),'facec',[0.5 0.5 0.5])
set(ch(1),'facea',fa) % alpha is the transparency.
set(ch(2),'facec',[1 1 1])
set(ch(2),'facea',fa) % alpha is the transparency.
set(ch(3),'facec',[0 0 0])
set(ch(3),'facea',fa) % alpha is the transparency.