From $ROOTSYS/tutorials/hist/th2polyHoneycomb.C

//This tutorial illustrates how to create an histogram with hexagonal
//bins (TH2Poly), fill it and draw it using GL.
//
//Author: Olivier Couet

void th2polyHoneycomb(){
   gStyle->SetCanvasPreferGL(true);
   TH2Poly *hc = new TH2Poly();
   hc->Honeycomb(0,0,.1,25,25);
   gStyle->SetPalette(1);

   TRandom ran;
   for (int i = 0; i<30000; i++) {
      hc->Fill(ran.Gaus(2.,1), ran.Gaus(2.,1));
   }

   hc->Draw("gllego");
}
 th2polyHoneycomb.C:1
 th2polyHoneycomb.C:2
 th2polyHoneycomb.C:3
 th2polyHoneycomb.C:4
 th2polyHoneycomb.C:5
 th2polyHoneycomb.C:6
 th2polyHoneycomb.C:7
 th2polyHoneycomb.C:8
 th2polyHoneycomb.C:9
 th2polyHoneycomb.C:10
 th2polyHoneycomb.C:11
 th2polyHoneycomb.C:12
 th2polyHoneycomb.C:13
 th2polyHoneycomb.C:14
 th2polyHoneycomb.C:15
 th2polyHoneycomb.C:16
 th2polyHoneycomb.C:17
 th2polyHoneycomb.C:18
 th2polyHoneycomb.C:19