# How to draw a graph of crossection with uncertainies showing by color

**URL:** <https://root-forum.cern.ch/t/how-to-draw-a-graph-of-crossection-with-uncertainies-showing-by-color/48820>\
**Category:** Newbie\
**Tags:** root\
**Created:** [February 16, 2022, 4:23pm UTC](https://root-forum.cern.ch/t/how-to-draw-a-graph-of-crossection-with-uncertainies-showing-by-color/48820 "2022-02-16T16:23:10Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [February 20, 2022, 4:31pm UTC](https://root-forum.cern.ch/t/how-to-draw-a-graph-of-crossection-with-uncertainies-showing-by-color/48820/22 "2022-02-20T16:31:12Z")

</div>

Try with:

```cpp
mg->Draw("A");
b1->Draw();
l->Draw();
mg->Draw("P");

```

---

<div class="post-metadata">

**Author:** ![Anees\_Khan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/anees_khan/32/28677_2.png) [@Anees\_Khan](https://root-forum.cern.ch/u/Anees_Khan)\
**Post date:** [February 20, 2022, 4:33pm UTC](https://root-forum.cern.ch/t/how-to-draw-a-graph-of-crossection-with-uncertainies-showing-by-color/48820/23 "2022-02-20T16:33:49Z")

</div>

still same graph

---

<div class="post-metadata">

**Author:** ![Anees\_Khan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/anees_khan/32/28677_2.png) [@Anees\_Khan](https://root-forum.cern.ch/u/Anees_Khan)\
**Post date:** [February 20, 2022, 4:52pm UTC](https://root-forum.cern.ch/t/how-to-draw-a-graph-of-crossection-with-uncertainies-showing-by-color/48820/25 "2022-02-20T16:52:43Z")

</div>

> [@Wile\_E\_Coyote](#):
>
> ```auto
> mg->Draw("A");
> b1->Draw();
> l->Draw();
> mg->Draw("P");
> 
> ```

thanks now working

[Previous page](https://root-forum.cern.ch/t/how-to-draw-a-graph-of-crossection-with-uncertainies-showing-by-color/48820.md?page=1)
