Well, if I open canvas then “Auto resize Canvas” is enabled by default.
In this case my graphs are small, canvas width and height equal to width and height of available space on screen.
I do not see scrollbars.
If then I unset “Auto resize Canvas” from GUI menu, I see scrollbars, but my graphs are small.
I want to have scrollbars, because I want to have a lot of graph with good view (normal size, not small) on single canvas.
and open test_result.root in TBrowser I see canvas with small graphs (set or unset “Auto resize Canvas” in GUI do not change this situation).
Screenshot from 2016-11-03 10-03-07.png
My problem: normal size of graphs if I launch canvasscrollbars_create() and small size of graphs in test_result.root
root test_result.root
Couldn't find font "-adobe-helvetica-medium-r-*-*-10-*-*-*-*-*-iso8859-1",
trying "fixed". Please fix your system so helvetica can be found,
this font typically is in the rpm (or pkg equivalent) package
XFree86-[75,100]dpi-fonts or fonts-xorg-[75,100]dpi.
*******************************************
* *
* W E L C O M E to R O O T *
* *
* Version 5.34/36 5 April 2016 *
* *
* You are welcome to visit our Web site *
* http://root.cern.ch *
* *
*******************************************
ROOT 5.34/36 (v5-34-36@v5-34-36, Apr 05 2016, 10:25:45 on linuxx8664gcc)
CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0]
Attaching file test_result.root as _file0...
root [1]
root [1]
root [1] _file0->ls()
TFile** test_result.root
TFile* test_result.root
KEY: TCanvas c;1 c
Processing canvasscrollbars.C...
root [1] c->SaveAs("canvasscrollbars.root")
Info in <TCanvas::SaveAs>: ROOT file canvasscrollbars.root has been created
$ root canvasscrollbars.root
etc ...