Quantcast
Channel: MATLAB Central Newsreader - tag:"set"
Viewing all articles
Browse latest Browse all 22

Re: histogram overlap grayscale

$
0
0
"Steven Lord" <Steven_Lord@mathworks.com> wrote in message <m4flde$ha0$1@newscl01ah.mathworks.com>...
>
> "leo nidas" <bleonidas25@yahoo.gr> wrote in message
> news:m4e8vm$5go$1@newscl01ah.mathworks.com...
> >
> > 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.
>
> If you're using release R2014b, take a look at the HISTOGRAM function.
>
> x1 = randn(1, 1e5);
> x2 = randn(1, 1e5);
> x3 = randn(1, 1e5);
> h1 = histogram(x1, 'FaceColor', [0.2 0.2 0.2]);
> hold on
> h2 = histogram(x2+3, 'FaceColor', [0.5 0.5 0.5]);
> h3 = histogram(x3-3, 'FaceColor', [0.8 0.8 0.8]);
>
> --
> Steve Lord
> slord@mathworks.com
> To contact Technical Support use the Contact Us link on
> http://www.mathworks.com



Sorry, I have access to R2012b..
Any other alternative?

Viewing all articles
Browse latest Browse all 22

Trending Articles