Can you try and scale the resolution in Displays as I have done here:
I will do more tests with my Mac to see what the simplest arrangement of monitors is that reproduces the issue. It seems to vanish when I just use a single monitor.
I’ve modified the scripts a bit to make this easier:
void png_double_x_axis_title(std::vector<std::string> extensions={"gif","png","pdf"}){
TCanvas *c1 = new TCanvas("c1","c1",1000,2000);
c1->DrawFrame(0.,0.,10.,10.);
for (auto ext : extensions) {
c1->Print(("test1."+ext).c_str());
gSystem->Exec(("identify test1."+ext).c_str());
}
}
And a script to test all combinations:
{
gROOT->ProcessLine(".L png_double_x_axis_title.C");
std::cout << "gif, png, pdf\n";
png_double_x_axis_title({"gif", "png", "pdf"});
std::cout << "gif, pdf, png\n";
png_double_x_axis_title({"gif", "pdf", "png"});
std::cout << "png, gif, pdf\n";
png_double_x_axis_title({"png", "gif", "pdf"});
std::cout << "png, pdf, gif\n";
png_double_x_axis_title({"png", "pdf", "gif"});
std::cout << "pdf, gif, png\n";
png_double_x_axis_title({"pdf", "gif", "png"});
std::cout << "pdf, png, gif\n";
png_double_x_axis_title({"pdf", "png", "gif"});
}
The output:
$ root -q all_choices.C
Processing all_choices.C...
gif, png, pdf
Info in <TCanvas::Print>: GIF file test1.gif has been created
test1.gif GIF 998x1820 998x1820+0+0 8-bit sRGB 256c 17259B 0.000u 0:00.019
Info in <TCanvas::Print>: file test1.png has been created
test1.png PNG 998x1820 998x1820+0+0 8-bit sRGB 28848B 0.000u 0:00.009
Info in <TCanvas::Print>: pdf file test1.pdf has been created
test1.pdf PDF 595x842 595x842+0+0 16-bit sRGB 9287B 0.000u 0:00.000
gif, pdf, png
Warning in <TCanvas::Constructor>: Deleting canvas with same name: c1
Info in <TCanvas::Print>: GIF file test1.gif has been created
test1.gif GIF 998x1820 998x1820+0+0 8-bit sRGB 256c 17259B 0.000u 0:00.019
Info in <TCanvas::Print>: pdf file test1.pdf has been created
test1.pdf PDF 595x842 595x842+0+0 16-bit sRGB 9287B 0.000u 0:00.000
Info in <TCanvas::Print>: file test1.png has been created
test1.png PNG 998x1820 998x1820+0+0 8-bit sRGB 28848B 0.000u 0:00.009
png, gif, pdf
Warning in <TCanvas::Constructor>: Deleting canvas with same name: c1
Info in <TCanvas::Print>: file test1.png has been created
test1.png PNG 998x1820 998x1820+0+0 8-bit sRGB 28848B 0.000u 0:00.009
Info in <TCanvas::Print>: GIF file test1.gif has been created
test1.gif GIF 998x1820 998x1820+0+0 8-bit sRGB 256c 17259B 0.000u 0:00.000
Info in <TCanvas::Print>: pdf file test1.pdf has been created
test1.pdf PDF 595x842 595x842+0+0 16-bit sRGB 9287B 0.000u 0:00.000
png, pdf, gif
Warning in <TCanvas::Constructor>: Deleting canvas with same name: c1
Info in <TCanvas::Print>: file test1.png has been created
test1.png PNG 998x1820 998x1820+0+0 8-bit sRGB 28848B 0.000u 0:00.009
Info in <TCanvas::Print>: pdf file test1.pdf has been created
test1.pdf PDF 595x842 595x842+0+0 16-bit sRGB 9287B 0.000u 0:00.000
Info in <TCanvas::Print>: GIF file test1.gif has been created
test1.gif GIF 998x1820 998x1820+0+0 8-bit sRGB 256c 17259B 0.000u 0:00.000
pdf, gif, png
Warning in <TCanvas::Constructor>: Deleting canvas with same name: c1
Info in <TCanvas::Print>: pdf file test1.pdf has been created
test1.pdf PDF 595x842 595x842+0+0 16-bit sRGB 9287B 0.000u 0:00.000
Info in <TCanvas::Print>: GIF file test1.gif has been created
test1.gif GIF 998x1820 998x1820+0+0 8-bit sRGB 256c 17259B 0.000u 0:00.009
Info in <TCanvas::Print>: file test1.png has been created
test1.png PNG 998x1820 998x1820+0+0 8-bit sRGB 28848B 0.000u 0:00.009
pdf, png, gif
Warning in <TCanvas::Constructor>: Deleting canvas with same name: c1
Info in <TCanvas::Print>: pdf file test1.pdf has been created
test1.pdf PDF 595x842 595x842+0+0 16-bit sRGB 9287B 0.000u 0:00.000
Info in <TCanvas::Print>: file test1.png has been created
test1.png PNG 998x1820 998x1820+0+0 8-bit sRGB 28848B 0.000u 0:00.019
Info in <TCanvas::Print>: GIF file test1.gif has been created
test1.gif GIF 998x1820 998x1820+0+0 8-bit sRGB 256c 17259B 0.000u 0:00.009
$ root -b -q all_choices.C
Processing all_choices.C...
gif, png, pdf
Info in <TCanvas::Print>: gif file test1.gif has been created
test1.gif GIF 996x1972 996x1972+0+0 8-bit sRGB 8c 10707B 0.000u 0:00.000
Info in <TCanvas::Print>: png file test1.png has been created
test1.png PNG 996x1972 996x1972+0+0 8-bit sRGB 16420B 0.000u 0:00.000
Info in <TCanvas::Print>: pdf file test1.pdf has been created
test1.pdf PDF 595x842 595x842+0+0 16-bit sRGB 8877B 0.000u 0:00.000
gif, pdf, png
Warning in <TCanvas::Constructor>: Deleting canvas with same name: c1
Info in <TCanvas::Print>: gif file test1.gif has been created
test1.gif GIF 996x1972 996x1972+0+0 8-bit sRGB 8c 10707B 0.000u 0:00.000
Info in <TCanvas::Print>: pdf file test1.pdf has been created
test1.pdf PDF 595x842 595x842+0+0 16-bit sRGB 8877B 0.000u 0:00.000
Info in <TCanvas::Print>: png file test1.png has been created
test1.png PNG 996x1972 996x1972+0+0 8-bit sRGB 16420B 0.000u 0:00.009
png, gif, pdf
Warning in <TCanvas::Constructor>: Deleting canvas with same name: c1
Info in <TCanvas::Print>: png file test1.png has been created
test1.png PNG 996x1972 996x1972+0+0 8-bit sRGB 16420B 0.000u 0:00.009
Info in <TCanvas::Print>: gif file test1.gif has been created
test1.gif GIF 996x1972 996x1972+0+0 8-bit sRGB 8c 10707B 0.000u 0:00.000
Info in <TCanvas::Print>: pdf file test1.pdf has been created
test1.pdf PDF 595x842 595x842+0+0 16-bit sRGB 8877B 0.000u 0:00.000
png, pdf, gif
Warning in <TCanvas::Constructor>: Deleting canvas with same name: c1
Info in <TCanvas::Print>: png file test1.png has been created
test1.png PNG 996x1972 996x1972+0+0 8-bit sRGB 16420B 0.000u 0:00.000
Info in <TCanvas::Print>: pdf file test1.pdf has been created
test1.pdf PDF 595x842 595x842+0+0 16-bit sRGB 8877B 0.000u 0:00.000
Info in <TCanvas::Print>: gif file test1.gif has been created
test1.gif GIF 996x1972 996x1972+0+0 8-bit sRGB 8c 10707B 0.000u 0:00.009
pdf, gif, png
Warning in <TCanvas::Constructor>: Deleting canvas with same name: c1
Info in <TCanvas::Print>: pdf file test1.pdf has been created
test1.pdf PDF 595x842 595x842+0+0 16-bit sRGB 8877B 0.000u 0:00.000
Info in <TCanvas::Print>: gif file test1.gif has been created
test1.gif GIF 996x1972 996x1972+0+0 8-bit sRGB 8c 10707B 0.000u 0:00.000
Info in <TCanvas::Print>: png file test1.png has been created
test1.png PNG 996x1972 996x1972+0+0 8-bit sRGB 16420B 0.000u 0:00.009
pdf, png, gif
Warning in <TCanvas::Constructor>: Deleting canvas with same name: c1
Info in <TCanvas::Print>: pdf file test1.pdf has been created
test1.pdf PDF 595x842 595x842+0+0 16-bit sRGB 8877B 0.000u 0:00.000
Info in <TCanvas::Print>: png file test1.png has been created
test1.png PNG 996x1972 996x1972+0+0 8-bit sRGB 16420B 0.000u 0:00.009
Info in <TCanvas::Print>: gif file test1.gif has been created
test1.gif GIF 996x1972 996x1972+0+0 8-bit sRGB 8c 10707B 0.000u 0:00.000