1 #ifndef __JROOT__JSTYLE__
2 #define __JROOT__JSTYLE__
13 namespace JPP {
using namespace JROOT; }
31 JStyle(
const char* title,
const UInt_t
x,
const UInt_t y) :
34 const Double_t font_size = (Double_t) y * 0.8e-4;
37 SetCanvasBorderMode(0);
38 SetCanvasBorderSize(0);
43 SetPadTopMargin (0.10);
44 SetPadBottomMargin(0.15);
45 SetPadLeftMargin (0.15);
46 SetPadRightMargin (0.10);
48 SetTickLength(3.0e-5 * (x < y ? x : y),
"X");
49 SetTickLength(3.0e-5 * (x < y ? x : y),
"Y");
50 SetTickLength(3.0e-5 * (x < y ? x : y),
"Z");
52 SetLabelSize(font_size,
"X");
53 SetLabelSize(font_size,
"Y");
54 SetLabelSize(font_size,
"Z");
55 SetLabelOffset(0.005,
"X");
56 SetLabelOffset(0.005,
"Y");
57 SetLabelOffset(0.005,
"Z");
61 SetTitleOffset(1.5,
"X");
62 SetTitleOffset(1.5,
"Y");
63 SetTitleOffset(1.5,
"Z");
64 SetTitleSize(font_size,
"X");
65 SetTitleSize(font_size,
"Y");
66 SetTitleSize(font_size,
"Z");
70 SetStatFontSize(font_size);
74 SetPaintTextFormat(
"3.0f");
80 SetTitleBorderSize(0);
JStyle(const char *title, const UInt_t x, const UInt_t y)
Constructor.
Wrapper class around ROOT TStyle.