# TH2 polar plot without bin edges

**URL:** <https://root-forum.cern.ch/t/th2-polar-plot-without-bin-edges/45559>\
**Category:** Newbie\
**Created:** [June 25, 2021, 2:43pm UTC](https://root-forum.cern.ch/t/th2-polar-plot-without-bin-edges/45559 "2021-06-25T14:43:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mweekes1](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@mweekes1](https://root-forum.cern.ch/u/mweekes1)\
**Post date:** [June 25, 2021, 2:43pm UTC](https://root-forum.cern.ch/t/th2-polar-plot-without-bin-edges/45559/1 "2021-06-25T14:43:46Z")

</div>

Hi,

I’d like to plot this TH2F in polar colz mode without the black bin edge lines, for easier visualisation. I haven’t found a successful method in the documentation, does anyone know if there’s a way to do this? Thanks.

 ![pol](https://root-forum.cern.ch/uploads/default/original/3X/3/4/3446a874bb974eef1e9a4e20379858b3590938ee.png)

* * *

_ROOT Version:_ 5.34  
_Platform:_ Linux  
_Compiler:_ Not Provided

* * *

---

<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:** [June 25, 2021, 4:16pm UTC](https://root-forum.cern.ch/t/th2-polar-plot-without-bin-edges/45559/2 "2021-06-25T16:16:58Z")

</div>

Before drawing it, try to add:

```cpp
gStyle->SetLineWidth(0); // axes "off"
gStyle->SetFrameLineWidth(0); // frame "off"

```

After drawing it, try to add:

```cpp
gPad->Modified(); gPad->Update(); // make sure it's really (re)drawn
gStyle->SetLineWidth(0); // axes "off"
gPad->GetFrame()->SetLineWidth(0); // frame "off"
gPad->Modified(); gPad->Update(); // make sure it's really (re)drawn

```

And I’m afraid @couet will need to tell you how to overcome “known bugs”.

---

<div class="post-metadata">

**Author:** ![mweekes1](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@mweekes1](https://root-forum.cern.ch/u/mweekes1)\
**Post date:** [June 26, 2021, 1:39pm UTC](https://root-forum.cern.ch/t/th2-polar-plot-without-bin-edges/45559/3 "2021-06-26T13:39:26Z")

</div>

Hi,

Sorry no luck with that, same result as before.

---

<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:** [June 26, 2021, 1:41pm UTC](https://root-forum.cern.ch/t/th2-polar-plot-without-bin-edges/45559/4 "2021-06-26T13:41:31Z")

</div>

I did mention “known bugs” (in ROOT 5), didn’t I? 😉

You may have better luck with ROOT 6. 🤔

---

<div class="post-metadata">

**Author:** ![mweekes1](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@mweekes1](https://root-forum.cern.ch/u/mweekes1)\
**Post date:** [June 26, 2021, 1:59pm UTC](https://root-forum.cern.ch/t/th2-polar-plot-without-bin-edges/45559/5 "2021-06-26T13:59:02Z")

</div>

Aha that’s done it - running in 6.14 that method works, lines gone. Thanks!
