Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
_tcanvas.pyzdoc
Go to the documentation of this file.
1\pythondoc TCanvas
2
3Functionality of TCanvas::Update() method was extended to support interactive
4graphics in the python scripts. If extra block parameter is True, script execution
5will be suspended until <space> key pressed by user. Simple example:
6
7\code{.py}
8\endcode
9import ROOT
10
11c = ROOT.TCanvas()
12h = ROOT.TH1I("h1", "h1", 100, -5, 5)
13h.FillRandom("gaus", 10000)
14h.Draw("")
15
16# block here until space is pressed
17c.Update(True)
18
19# continues after <space> is pressed
20c.SaveAs("canvas.root")
21\endpythondoc
#define c(i)
Definition RSha256.hxx:101
#define h(i)
Definition RSha256.hxx:106
The Canvas class.
Definition TCanvas.h:23
void Update() override
Update canvas pad buffers.
Definition TCanvas.cxx:2486