Rev 40 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 40 | Rev 47 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | //########################################################################################## |
1 | //########################################################################################## |
2 | #include "TGaxis.h" |
2 | #include "TGaxis.h" |
- | 3 | #include "TColor.h" |
|
3 | 4 | ||
4 | void RTSetStyle(TStyle *style) |
5 | void RTSetStyle(TStyle *style) |
5 | { |
6 | { |
6 | style->SetStatBorderSize(1); |
7 | style->SetStatBorderSize(1); |
7 | style->SetFrameBorderMode(0); |
8 | style->SetFrameBorderMode(0); |
Line 17... | Line 18... | ||
17 | //style->SetMarkerSize(7); |
18 | //style->SetMarkerSize(7); |
18 | 19 | ||
19 | style->SetOptStat("e"); |
20 | style->SetOptStat("e"); |
20 | style->SetOptFit(1); |
21 | style->SetOptFit(1); |
21 | 22 | ||
22 | style->SetPadTopMargin(0. |
23 | style->SetPadTopMargin(0.10); |
23 | style->SetPadBottomMargin(0.12); |
24 | style->SetPadBottomMargin(0.12); |
24 | style->SetPadLeftMargin(0.12); |
25 | style->SetPadLeftMargin(0.12); |
25 | style->SetPadRightMargin(0. |
26 | style->SetPadRightMargin(0.15); |
26 | 27 | ||
27 | style->SetTitleOffset(1. |
28 | style->SetTitleOffset(1.5, "y"); |
28 | style->SetPalette(1, 0); |
29 | style->SetPalette(1, 0); |
29 | 30 | ||
30 | style->SetPaperSize(TStyle::kA4); |
31 | style->SetPaperSize(TStyle::kA4); |
31 | 32 | ||
32 | TGaxis::SetMaxDigits(4); |
33 | TGaxis::SetMaxDigits(4); |
Line 84... | Line 85... | ||
84 | } |
85 | } |
85 | //------------------------------------------------------------------------------------------ |
86 | //------------------------------------------------------------------------------------------ |
86 | void RTCanvas::Update() |
87 | void RTCanvas::Update() |
87 | { |
88 | { |
88 | can->Update(); |
89 | can->Update(); |
- | 90 | } |
|
- | 91 | ||
- | 92 | void SetGS() |
|
- | 93 | { |
|
- | 94 | const Int_t Number = 2; |
|
- | 95 | Double_t Red[Number] = {1.0, 0.0}; |
|
- | 96 | Double_t Green[Number] = {1.0, 0.0}; |
|
- | 97 | Double_t Blue[Number] = {1.0, 0.0}; |
|
- | 98 | Double_t Stops[Number] = {0.0, 1.0}; |
|
- | 99 | Int_t nb = 50; |
|
- | 100 | TColor::CreateGradientColorTable(Number, Stops, Red, Green, Blue, nb); |
|
89 | } |
101 | } |
90 | //########################################################################################## |
102 | //########################################################################################## |
91 | 103 | ||
92 | 104 | ||
93 | 105 |