Skip to content
Snippets Groups Projects
Commit 36ea2290 authored by Olivier Couet's avatar Olivier Couet
Browse files

TPad

git-svn-id: http://root.cern.ch/svn/root/trunk@43461 27541ba8-7e3a-0410-8455-c3a389f83636
parent 35c1e42d
No related branches found
No related tags found
No related merge requests found
......@@ -38,3 +38,23 @@
Implement <tt>#mp</tt>.
</li>
</ul>
<h4>TPad</h4>
<ul>
<li>
New method DivideSquare a canvas in to n sub-pads. The number of sub-pads
along the X and Y axis are computed according to the square root of n.
Example:
</li>
<pre>
void divsquare(int w, int h, int n)
{
TCanvas *c = new TCanvas ("c","c",0,0,w,h);
c->DivideSquare(n);
for (int i=1; i<=n; i++) {
c->cd(i);
gPad->DrawFrame(0,0,1,1);
}
}
</pre>
</ul>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment