Change the Margins of a pad

You can change the borders on a pad around a histogram by

 pad->SetTopMargin(0.0);    // useful if you want to join two adjacent pads
 pad->SetBottomMargin(0.2); // in percent of the height