# Fill Style issue

**URL:** <https://root-forum.cern.ch/t/fill-style-issue/64976>\
**Category:** ROOT\
**Tags:** bug\
**Created:** [August 18, 2026, 7:47pm UTC](https://root-forum.cern.ch/t/fill-style-issue/64976 "2026-08-18T19:47:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![smgrig](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/smgrig/32/19464_2.png) [@smgrig](https://root-forum.cern.ch/u/smgrig)\
**Post date:** [August 18, 2026, 7:47pm UTC](https://root-forum.cern.ch/t/fill-style-issue/64976/1 "2026-08-18T19:47:03Z")

</div>

* * *

_Please read [tips for efficient and successful posting](https://root-forum.cern.ch/t/tips-for-efficient-and-successful-posting/28292) and [posting code](https://root-forum.cern.ch/t/posting-code-read-this-first/28293)_

### Describe the bug

The issue is the different behavior of gStyle-\>SetFillStyle(0) in the ROOT versions \<=32 and \>=34

### Expected behavior

The attached code and the resulting plots show the difference. All tested versions \<=32 give one result and versions \>=34 give another result shown in the files withROOT32.24.png and withROOT34.02.png, respectively. Personally, I prefer the behavior of versions \<=32 (2nd plot).

### To Reproduce

to reproduce the issue just run root -l FillStyleIssue.C

 ![withROOT34.02](https://root-forum.cern.ch/uploads/default/original/3X/f/c/fc475158c5d62d034942e225eeb57d436da8d4d9.png)

 ![withROOT32.24](https://root-forum.cern.ch/uploads/default/original/3X/3/4/342aa5bcfd0ba909f3644749202fe8d7e0d6aadd.png)

[FillStyleIssue.C](https://root-forum.cern.ch/uploads/short-url/fWzjVha63Lg4kFox6HVEtNBum7f.C) (786 Bytes)

### Setup

```auto

```

ROOT v6.32.24  
Built for linuxx8664gcc on Jun 18 2026, 06:58:42  
From tags/v6-32-24@v6-32-24  
With c++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0

I have obtained ROOT by binary download.

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [August 19, 2026, 4:44am UTC](https://root-forum.cern.ch/t/fill-style-issue/64976/2 "2026-08-19T04:44:06Z")

</div>

Since version 6.34 ([release notes here](https://root.cern/doc/v634/release-notes.html#d-graphics-libraries)), use instead

```auto
  gStyle->SetLegendFillStyle(0);

```

Before 6.34, there were already other `SetLegend<something>` methods, but FillStyle was missing.

---

<div class="post-metadata">

**Author:** ![smgrig](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/smgrig/32/19464_2.png) [@smgrig](https://root-forum.cern.ch/u/smgrig)\
**Post date:** [August 19, 2026, 8:04am UTC](https://root-forum.cern.ch/t/fill-style-issue/64976/3 "2026-08-19T08:04:50Z")

</div>

Great, thank you so much!

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [September 2, 2026, 8:05am UTC](https://root-forum.cern.ch/t/fill-style-issue/64976/4 "2026-09-02T08:05:37Z")

</div>

Closed on September 2, 2026, 8:05am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
