If I understand you correctly (and correct me if I’m mistaken) you want some space between y axis maxima and peak of histogram. You can do so by adding this to your macro.
histogram->GetYaxis()->SetRangeUser(0,700);
For better understanding read this.