As a simple case
TH1F *h = new TH1F("h", "Test Histogram", 100, -4, 4);
h->FillRandom("gaus", 10000);
h->Draw();
The result is:
Error in <TUnixSystem::SetDisplay>: Can't figure out DISPLAY, set it manually
In case you run a remote ssh session, restart your ssh session with:
=========> ssh -Y
Error in <TUnixSystem::SetDisplay>: Can't figure out DISPLAY, set it manually
In case you run a remote ssh session, restart your ssh session with:
=========> ssh -Y
Error in <TGClient::TGClient>: can't open display "", switching to batch mode...
In case you run from a remote ssh session, reconnect with ssh -Y
Info in <TCanvas::MakeDefCanvas>: created default TCanvas with name c1
By the way, with “gROOT->IsBatch()”, it returns false
ROOT Version: 6.22/00
Platform: Ubuntu
Compiler: c++