From 36ea2290f6731443d304dea02357449b4ff7578e Mon Sep 17 00:00:00 2001
From: Olivier Couet <Olivier.Couet@cern.ch>
Date: Fri, 23 Mar 2012 10:21:54 +0000
Subject: [PATCH] TPad

git-svn-id: http://root.cern.ch/svn/root/trunk@43461 27541ba8-7e3a-0410-8455-c3a389f83636
---
 graf2d/doc/v534/index.html | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/graf2d/doc/v534/index.html b/graf2d/doc/v534/index.html
index c8d54d6721f..e7cec2dd06c 100644
--- a/graf2d/doc/v534/index.html
+++ b/graf2d/doc/v534/index.html
@@ -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>
-- 
GitLab