SHARE
TWEET

Multi histogram work

a guest Sep 15th, 2019 109 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. nbins=4;
  2. series1 = [9930 9379 9185 8837 8302 7778 7216 5947 5655 5489 5334 4828 4789 4623 4605];
  3. series2 = [7367 6259 6149 5716 5540 5163 4398 4217 3968];
  4. series3 = [7288 5797 5394 4859 4845 4432 4010 2703];
  5. [series1,centers] = hist(series1,nbins);
  6. [series2] = hist(series2,centers);
  7. [series3] = hist(series3,centers);
  8. DataSum=series1+series2+series3;
  9. figure
  10. bar(centers,DataSum,width1,'FaceColor',[0.2,0.2,0.5],'EdgeColor','none');
  11. hold on
  12. bar(centers,series2,width2,'FaceColor',[0,0.7,0.7],'EdgeColor',[0,0.7,0.7]);
  13. hold off
  14. legend('Never played','< 3 hours','3+ hours')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top