# THStack with RDataFrame

**URL:** <https://root-forum.cern.ch/t/thstack-with-rdataframe/39291>\
**Category:** Newbie\
**Tags:** graphics, rdataframe\
**Created:** [May 6, 2020, 6:04pm UTC](https://root-forum.cern.ch/t/thstack-with-rdataframe/39291 "2020-05-06T18:04:59Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![eballabe](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eballabe/32/21846_2.png) [@eballabe](https://root-forum.cern.ch/u/eballabe)\
**Post date:** [May 6, 2020, 8:22pm UTC](https://root-forum.cern.ch/t/thstack-with-rdataframe/39291/3 "2020-05-06T20:22:57Z")

</div>

Hi @eguiraud,  
I just solved the issue (nothing to do with RDataFrame). I just changed the last line:

```
hs.Draw("HIST")

```

as I read here:

> [@THStack not filling histograms with color](https://root-forum.cern.ch/t/thstack-not-filling-histograms-with-color/24577):
>
> Dear all, I am encountering a very peculiar esthetic issue: I have 8 histograms stacked with a THStack and drawn, each filled with its own color: histo1-\>SetLineColor(1); histo1-\>SetFillColor(1); … I then stack them, and draw them and everything works fine. Then I realized I actually need to weight those histograms when filling them: histo1-\>Fill(variable, weight1); … And now, with weighted histos, the stack only draws the histograms line and not the “interior”. How can I solve this? Mo…

Thanks for the reply!  
Eric

---

_[View the full topic](https://root-forum.cern.ch/t/thstack-with-rdataframe/39291)._
