slightly more convenient legend class
More...
#include <computils.h>
slightly more convenient legend class
Definition at line 333 of file computils.h.
◆ Legend() [1/3]
◆ Legend() [2/3]
Legend::Legend |
( |
double |
x1, |
|
|
double |
x2, |
|
|
double |
y1, |
|
|
double |
y2 |
|
) |
| |
|
inline |
◆ Legend() [3/3]
◆ ~Legend()
◆ AddEntry()
void Legend::AddEntry |
( |
TObject * |
tobj, |
|
|
const std::string & |
s, |
|
|
const std::string & |
type = "p" |
|
) |
| |
|
inline |
◆ Draw()
ha ! don't actually create the legend until we want to draw it, then we can determine the size etc automatically
Definition at line 380 of file computils.h.
397 m_leg->SetBorderSize(0);
398 m_leg->SetTextFont(42);
399 m_leg->SetTextSize(0.04);
400 m_leg->SetFillStyle(3000);
401 m_leg->SetFillColor(0);
402 m_leg->SetLineColor(0);
◆ height()
double Legend::height |
( |
| ) |
const |
|
inline |
◆ legend()
TLegend* Legend::legend |
( |
| ) |
|
|
inline |
◆ size()
size_t Legend::size |
( |
| ) |
const |
|
inline |
◆ TextFont()
int Legend::TextFont |
( |
| ) |
const |
|
inline |
◆ TextSize()
double Legend::TextSize |
( |
| ) |
const |
|
inline |
◆ width()
double Legend::width |
( |
| ) |
const |
|
inline |
◆ m_entries
std::vector<std::string> Legend::m_entries |
|
private |
◆ m_leg
◆ m_obj
std::vector<TObject*> Legend::m_obj |
|
private |
◆ m_type
std::vector<std::string> Legend::m_type |
|
private |
◆ m_x
◆ m_y
The documentation for this class was generated from the following file: