Hi Root users.
I have a C++ standalone application which generate several hundred graph and histogram. For accelerate process i would like print canvas to a file without canvas display.
Is it possible ? perhaps with batch option ?
regards
Hi Root users.
I have a C++ standalone application which generate several hundred graph and histogram. For accelerate process i would like print canvas to a file without canvas display.
Is it possible ? perhaps with batch option ?
regards
Yes exactly:
$ root -b
Ah ok, the equivalent of the -b option for the root command can be done programmatically with:
gROOT->SetBatch(kTRUE);
It is enough to do:
#include <TROOT.h>
gROOT
is a global variable defined in that file.
great thanks a lot it’s work. I can generate several hundreds canvas in few seconds.
bye.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.