Skip to content

Commit ec3c836

Browse files
authored
Merge pull request #697 from beomki-yeo/adjust-text6
Adjust text
2 parents cd1b5dc + c70ae09 commit ec3c836

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

tests/validation/root/covariance_validation.C

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ double titleX_font_size = 0.055;
5959
double titleY_font_size = 0.055;
6060
double x_title_offset = 1.25;
6161
double y_title_offset = 1.34;
62+
double y_title_offset_pval = 0.9;
6263
double x_label_offset = 0.015;
6364
double y_label_offset = 0.015;
6465
double pull_min = -6.5f;
@@ -329,7 +330,7 @@ void draw_pval(TH1D* h_pval, const std::string& header_text,
329330
h_pval->GetYaxis()->SetLabelSize(label_font_size);
330331
h_pval->GetXaxis()->SetTitleSize(titleX_font_size);
331332
h_pval->GetYaxis()->SetTitleSize(titleY_font_size);
332-
h_pval->GetYaxis()->SetTitleOffset(y_title_offset);
333+
h_pval->GetYaxis()->SetTitleOffset(y_title_offset_pval);
333334
h_pval->GetXaxis()->SetTitleOffset(x_title_offset);
334335
h_pval->GetYaxis()->SetLabelOffset(y_label_offset);
335336
h_pval->GetXaxis()->SetLabelOffset(x_label_offset);

tests/validation/root/jacobian_comparison.C

+8-8
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ double labely_offset = 0.01;
3434
double title_font_size = 0.055;
3535
double title_offset = 0.71;
3636
double marker_size = 1.3875;
37-
double legend_margin = 0.105;
37+
double legend_margin = 0.115;
3838
int title_font = 132;
3939
int label_font = 132;
4040
int legend_font = 132;
41-
double legend_font_size = 0.050;
42-
double y_min = -14;
41+
double legend_font_size = 0.045;
42+
double y_min = -15;
4343
double y_max = 10;
44-
double y_margin = 1;
44+
double y_margin = 0;
4545
double header_size = 0.05;
46-
std::array<float, 4> ldim{0.508347, 0.607863, 0.942404, 0.885081};
46+
std::array<float, 4> ldim{0.545075, 0.621849, 0.942404, 0.881048};
4747
double pad_x0 = 0.00;
4848
double pad_x1 = 1;
4949
double pad_y0 = 0.00;
@@ -187,7 +187,7 @@ TH1D* get_histogram(std::string name, const int n_labels,
187187
histo->GetYaxis()->CenterTitle(true);
188188

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

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

227-
const float x1 = 1.23;
228-
const float y1 = 7.58642;
227+
const float x1 = 1.23427;
228+
const float y1 = 6.511;
229229

230230
TLatex* ttext = new TLatex(0.f, 0.f, text.c_str());
231231
ttext->SetTextFont(132);

tests/validation/root/rk_tolerance_comparison.C

+6-6
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ double x_label_offset = 0.015;
3636
double x_margin = 1;
3737
double y_label_offset = 0.015;
3838
double rk_title_x_offset = 0.9;
39-
double rk_title_offset_fraction = 0.0216;
40-
double rk_title_y = 13.765;
39+
double rk_title_offset_fraction = 0.0218;
40+
double rk_title_y = 14.69;
4141
double rk_ygap = -0.8;
4242
double rk_header_text_size = 0.046;
4343
double rk_geom_text_size = 0.035;
@@ -57,7 +57,7 @@ double pad_y0 = 0.005f;
5757
double pad_y1 = 1.f;
5858
double ymin = -2;
5959
double ymax = 4.;
60-
std::array<double, 4u> ldim{0.189233, 0.510081, 0.907268, 0.954545};
60+
std::array<double, 4u> ldim{0.20985, 0.533, 0.87997, 0.939};
6161
} // namespace
6262

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

231231
double yaxis_min = -10;
232-
double yaxis_max = 14;
232+
double yaxis_max = 15;
233233
double yaxis_margin = 1.;
234234

235235
std::cout << "Vec size: " << x_vec.size() << std::endl;
@@ -266,7 +266,7 @@ void draw_graphs(const std::string header_title, const std::string geom_title,
266266
mg->GetYaxis()->SetLabelSize(0);
267267
mg->GetYaxis()->SetTickLength(0);
268268
auto ga_y = new TGaxis(x_min, yaxis_min, x_min, yaxis_max, yaxis_min,
269-
yaxis_max, 406, "N");
269+
yaxis_max, 505, "N");
270270
ga_y->SetLabelFont(label_font);
271271
ga_y->SetLabelOffset(0.02);
272272
ga_y->SetLabelSize(label_font_size_rk_tol);
@@ -358,7 +358,7 @@ void draw_mean_step_size(const std::string header_title,
358358
void rk_tolerance_comparison(int min, int max) {
359359
gStyle->SetOptTitle(0);
360360
gStyle->SetLegendBorderSize(0);
361-
gStyle->SetLegendTextSize(0.037);
361+
gStyle->SetLegendTextSize(0.0333);
362362

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

0 commit comments

Comments
 (0)