Skip to content

TLegend header drawn in different position with jsroot and more than 1 column #21173

@Zehvogel

Description

@Zehvogel

Check duplicate issues.

  • Checked for duplicates

Description

How it is displayed in the Jupyter notebook:
Image

How the saved pdf looks like:
Image

I would expect them to look as similar as possible (note also the differences in the margins of the text...)

Reproducer

make a TLegend with a header and a couple of entries, SetNColumns(2) and compare

ROOT version

   ------------------------------------------------------------------
  | Welcome to ROOT 6.38.00                        https://root.cern |
  | (c) 1995-2025, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for linuxx8664gcc on Dec 21 2025, 15:58:20                 |
  | From tags/6-38-00@6-38-00                                        |
  | With g++ (Spack GCC) 14.2.0 std202002                            |
  | Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q'  |
   ------------------------------------------------------------------

Installation method

source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh -r 2026-02-06

Operating system

Alma9

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions