How to suppress histogram display?

Hi, rooters!
I work in pyroot and every time I create a histogram it pops up near my cursor. It is a bit annoying when creating many histograms. How to suppress the display of histogram when creating it?

ROOT Version: 6.22/06
Platform: unbuntu 20.04
Compiler: linuxx8664gcc


I am not sure what you mean by that… May be @etejedor will know.

in C++ we have:

root [0] auto h = new TH1F()
(TH1F *) @0x7ff7ba2e6860
root [1] 

The address of the newly created histogram is displayed. Is that what you mean ?

1 Like

Hello,
I guess you mean when you draw a histogram in a canvas? If you don’t want any graphics to appear, you can do:

import ROOT
ROOT.gROOT.SetBatch(True)

before drawing any histogram.

1 Like

Yes, that is just what I was looking for.

Thank you very much!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.