Kreikkk
February 10, 2022, 9:55pm
1
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
couet
February 11, 2022, 8:10am
2
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
Kreikkk
February 12, 2022, 6:40pm
4
Yes, that is just what I was looking for.
Thank you very much!
system
Closed
February 26, 2022, 6:41pm
5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.