Created
April 4, 2013 13:51
-
-
Save AndiH/5310501 to your computer and use it in GitHub Desktop.
common root configurations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace andi { | |
namespace global { | |
void common() { | |
std::cout << "Setting defaults." << std::endl; | |
set_plot_style(); | |
} | |
// individual methods | |
void set_plot_style() { | |
const Int_t NRGBs = 5; | |
const Int_t NCont = 255; | |
// Default FZJ colors, {R, G, B} | |
double fzjDarkBlue[3] = { 0.00, 91./255, 130./255}; | |
double fzjBlue[3] = {79./255, 12./255, 189./255}; | |
double fzjLightBlue[3] = {238./255, 243./255, 249./255}; | |
double fzjLighterBlue[3] = {219./255, 229./255, 241./255}; | |
double fzjPurple[3] = {183./255, 170./255, 200./255}; | |
double fzjLightPurple[3] = {240./255, 235./255, 255./255}; | |
double fzjBurgunder[3] = {109./255, 34./255, 99./255}; | |
Double_t stops[NRGBs] = { 0.00, 0.34, 0.61, 0.84, 1.00 }; | |
// Double_t red[NRGBs] = { 0.00, 0.00, 0.87, 1.00, 0.51 }; | |
// Double_t green[NRGBs] = { 0.00, 0.81, 1.00, 0.20, 0.00 }; | |
// Double_t blue[NRGBs] = { 0.51, 1.00, 0.12, 0.00, 0.00 }; | |
Double_t red[NRGBs] = { fzjBlue[0], 0.00, 0.87, 1.00, 0.51 }; | |
Double_t green[NRGBs] = { fzjBlue[1], 0.81, 1.00, 0.20, 0.00 }; | |
Double_t blue[NRGBs] = { fzjBlue[2], 1.00, 0.12, 0.00, 0.00 }; | |
TColor::CreateGradientColorTable(NRGBs, stops, red, green, blue, NCont); | |
gStyle->SetNumberContours(NCont); | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment