root-project / root

The official repository for ROOT: analyzing, storing and visualizing big data, scientifically
https://root.cern
Other
2.72k stars 1.3k forks source link

Double shadow in `TPaveText` #17076

Closed linev closed 1 day ago

linev commented 5 days ago

Check duplicate issues.

Description

When producing images, double shadow for TPaveText is produced. Which normally should not happen.

Reproducer

From $ROOTSYS, starts:

root --web=off tutorials/hsimple.root -e 'gStyle->Reset(); hpx->Draw(); c1->SaveAs("hpx.png")' 

Screenshot of the canvas with marked problematic regions: Screenshot_20241126_174603

Also created image file has same artifact: hpx

Double shadow disappears when TCanvas modified - like after resize

ROOT version

ROOT master branch

Installation method

Build from source

Operating system

OpenSUSE Linux

Additional context

No response

couet commented 2 days ago

As Serguey mentioned elsewhere the following lines also show the problem:

{
   auto h1 = new TH1I("h1","histogram title", 100, -5, 5);
   h1->FillRandom("gaus", 10000);
   gStyle->SetTitleBorderSize(5);
   h1->Draw();
}
couet commented 2 days ago

Fixed here: https://github.com/root-project/root/pull/17152