How Can I Create a ROOT TLegend Fill Box?

  • Context:
  • Thread starter Thread starter ChrisVer
  • Start date Start date
  • Tags Tags
    Box Root
Click For Summary
SUMMARY

The discussion focuses on creating a ROOT TLegend fill box that combines the fill and line styles without the enclosing black line. The user attempted various draw options including "L", "F", and "E" but did not achieve the desired result. The specific challenge involves using two graphs: one for the error band and another for the line in between. The ROOT Forum serves as a valuable resource for resolving such technical queries related to ROOT.

PREREQUISITES
  • Familiarity with ROOT framework and its graphical capabilities
  • Understanding of TLegend and its drawing options
  • Knowledge of graphing error bands in ROOT
  • Experience with ROOT version compatibility and features
NEXT STEPS
  • Research ROOT TLegend customization options
  • Explore advanced drawing techniques in ROOT
  • Learn about combining multiple graphs in ROOT
  • Investigate ROOT documentation for specific draw options and examples
USEFUL FOR

Developers and researchers working with ROOT for data visualization, particularly those needing to customize legend entries for complex graph presentations.

ChrisVer
Science Advisor
Messages
3,372
Reaction score
465
Does someone know how I can make such a legend entry in ROOT?

entry.png


I have tried all the draw options ("L","F","E") but I am unable to get this result.
It really looks like a mixture of LF, but LF draws me a rectangular box enclosed in black line.

extra info: I am using two graphs, one is for the error band and the other is for the line inbetween.
 
Technology news on Phys.org
The ROOT Forum is the place to get answers to ROOT questions like this one.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
11K
Replies
5
Views
2K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 3 ·
Replies
3
Views
7K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
55
Views
7K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K