Skip to content

Commit

Permalink
Merge pull request #697 from beomki-yeo/adjust-text6
Browse files Browse the repository at this point in the history
Adjust text
  • Loading branch information
beomki-yeo authored Mar 14, 2024
2 parents cd1b5dc + c70ae09 commit ec3c836
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
3 changes: 2 additions & 1 deletion tests/validation/root/covariance_validation.C
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ double titleX_font_size = 0.055;
double titleY_font_size = 0.055;
double x_title_offset = 1.25;
double y_title_offset = 1.34;
double y_title_offset_pval = 0.9;
double x_label_offset = 0.015;
double y_label_offset = 0.015;
double pull_min = -6.5f;
Expand Down Expand Up @@ -329,7 +330,7 @@ void draw_pval(TH1D* h_pval, const std::string& header_text,
h_pval->GetYaxis()->SetLabelSize(label_font_size);
h_pval->GetXaxis()->SetTitleSize(titleX_font_size);
h_pval->GetYaxis()->SetTitleSize(titleY_font_size);
h_pval->GetYaxis()->SetTitleOffset(y_title_offset);
h_pval->GetYaxis()->SetTitleOffset(y_title_offset_pval);
h_pval->GetXaxis()->SetTitleOffset(x_title_offset);
h_pval->GetYaxis()->SetLabelOffset(y_label_offset);
h_pval->GetXaxis()->SetLabelOffset(x_label_offset);
Expand Down
16 changes: 8 additions & 8 deletions tests/validation/root/jacobian_comparison.C
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ double labely_offset = 0.01;
double title_font_size = 0.055;
double title_offset = 0.71;
double marker_size = 1.3875;
double legend_margin = 0.105;
double legend_margin = 0.115;
int title_font = 132;
int label_font = 132;
int legend_font = 132;
double legend_font_size = 0.050;
double y_min = -14;
double legend_font_size = 0.045;
double y_min = -15;
double y_max = 10;
double y_margin = 1;
double y_margin = 0;
double header_size = 0.05;
std::array<float, 4> ldim{0.508347, 0.607863, 0.942404, 0.885081};
std::array<float, 4> ldim{0.545075, 0.621849, 0.942404, 0.881048};
double pad_x0 = 0.00;
double pad_x1 = 1;
double pad_y0 = 0.00;
Expand Down Expand Up @@ -187,7 +187,7 @@ TH1D* get_histogram(std::string name, const int n_labels,
histo->GetYaxis()->CenterTitle(true);

if (TString(name).Contains("helix")) {
auto ga_y = new TGaxis(0, y_min, 0, y_max, y_min, y_max, 406, "N");
auto ga_y = new TGaxis(0, y_min, 0, y_max, y_min, y_max, 505, "N");
ga_y->SetLabelFont(42);
ga_y->SetLabelOffset(labely_offset);
ga_y->SetLabelSize(labely_font_size);
Expand Down Expand Up @@ -224,8 +224,8 @@ void draw_pad(const std::string& pad_name) {

void draw_text(const std::string& text) {

const float x1 = 1.23;
const float y1 = 7.58642;
const float x1 = 1.23427;
const float y1 = 6.511;

TLatex* ttext = new TLatex(0.f, 0.f, text.c_str());
ttext->SetTextFont(132);
Expand Down
12 changes: 6 additions & 6 deletions tests/validation/root/rk_tolerance_comparison.C
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ double x_label_offset = 0.015;
double x_margin = 1;
double y_label_offset = 0.015;
double rk_title_x_offset = 0.9;
double rk_title_offset_fraction = 0.0216;
double rk_title_y = 13.765;
double rk_title_offset_fraction = 0.0218;
double rk_title_y = 14.69;
double rk_ygap = -0.8;
double rk_header_text_size = 0.046;
double rk_geom_text_size = 0.035;
Expand All @@ -57,7 +57,7 @@ double pad_y0 = 0.005f;
double pad_y1 = 1.f;
double ymin = -2;
double ymax = 4.;
std::array<double, 4u> ldim{0.189233, 0.510081, 0.907268, 0.954545};
std::array<double, 4u> ldim{0.20985, 0.533, 0.87997, 0.939};
} // namespace

std::vector<std::string> create_labels() {
Expand Down Expand Up @@ -229,7 +229,7 @@ void draw_graphs(const std::string header_title, const std::string geom_title,
mg->GetYaxis()->CenterTitle(true);

double yaxis_min = -10;
double yaxis_max = 14;
double yaxis_max = 15;
double yaxis_margin = 1.;

std::cout << "Vec size: " << x_vec.size() << std::endl;
Expand Down Expand Up @@ -266,7 +266,7 @@ void draw_graphs(const std::string header_title, const std::string geom_title,
mg->GetYaxis()->SetLabelSize(0);
mg->GetYaxis()->SetTickLength(0);
auto ga_y = new TGaxis(x_min, yaxis_min, x_min, yaxis_max, yaxis_min,
yaxis_max, 406, "N");
yaxis_max, 505, "N");
ga_y->SetLabelFont(label_font);
ga_y->SetLabelOffset(0.02);
ga_y->SetLabelSize(label_font_size_rk_tol);
Expand Down Expand Up @@ -358,7 +358,7 @@ void draw_mean_step_size(const std::string header_title,
void rk_tolerance_comparison(int min, int max) {
gStyle->SetOptTitle(0);
gStyle->SetLegendBorderSize(0);
gStyle->SetLegendTextSize(0.037);
gStyle->SetLegendTextSize(0.0333);

const std::array<float, 2> cdim1{800, 1300};
const std::array<float, 2> cdim2{700, 600};
Expand Down

0 comments on commit ec3c836

Please sign in to comment.