how to stack hist?
古いコメントを表示
Does anyone knows how to stack 2 histogram. I have certain area data for 20 years. I am calculating yearly number of events by hist command. And also I have another area data for 20 years. Doing the same, calculating yearly number of events by hist command for the area also. Note for 2 data time the same, 1980-2000 in years.
Now I wanted 2 hist data stack. Is there any way to do it?
Thanks!
4 件のコメント
José-Luis
2016 年 6 月 30 日
What do you mean by stack?
davit petraasya
2016 年 6 月 30 日
編集済み: davit petraasya
2016 年 6 月 30 日
José-Luis
2016 年 6 月 30 日
I still don't get it. Could you show a figure as an example? And some data?
Stephen Licata
2020 年 12 月 23 日
編集済み: Stephen Licata
2020 年 12 月 23 日
That is a very good and fun example - many thanks!
BTW, if you want a special color, like 'gray' (which does not have a Matlab shortcut symbol code), do this bar command
bar(binrng,counts2,'FaceColor', [0.75 0.75 0.75])
which is equivalent to this version using the RGB integer values:
bar(binrng,counts2,'FaceColor', [192 192 192]/255)
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Data Distribution Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

