# Bad filling in a RooPlot

**URL:** <https://root-forum.cern.ch/t/bad-filling-in-a-rooplot/53632>\
**Category:** Newbie\
**Tags:** graphics, roofit, root\
**Created:** [February 15, 2023, 1:17am UTC](https://root-forum.cern.ch/t/bad-filling-in-a-rooplot/53632 "2023-02-15T01:17:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![henrique\_legoinha](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/henrique_legoinha/32/32478_2.png) [@henrique\_legoinha](https://root-forum.cern.ch/u/henrique_legoinha)\
**Post date:** [February 15, 2023, 1:17am UTC](https://root-forum.cern.ch/t/bad-filling-in-a-rooplot/53632/1 "2023-02-15T01:17:51Z")

</div>

```
model->plotOn(frame, Name(Form("erfc%d_%s",_count,pdf.Data())) , Components(Form("erfc%d_",_count)), Precision(1e-6), DrawOption("LF"), FillColor(kGreen+4), LineStyle(1), LineColor(kGreen+4), LineWidth(2));

```

This line(of code) fails miserably to fill the given curve (but draws it correctly). Other similar lines (of code) accounting other components of my model work just fine. Has anyone faced a similar issue and know how to resolve it?

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [February 21, 2023, 2:28pm UTC](https://root-forum.cern.ch/t/bad-filling-in-a-rooplot/53632/2 "2023-02-21T14:28:57Z")

</div>

Hello @henrique_legoinha ,

welcome to the ROOT forum and sorry for the high latency!  
Could you please provide a self-contained minimal reproducer that we can run in order to debug the issue?

@jonas might know more, let’s ping him.

Cheers,  
Enrico
