Fill Style issue


Please read tips for efficient and successful posting and posting code

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

FillStyleIssue.C (786 Bytes)

Setup


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.

Since version 6.34 (release notes here), use instead

  gStyle->SetLegendFillStyle(0);

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

Great, thank you so much!