Normalizing colors on two histograms

Hi all,

I have two histograms (TH2F), both of which I draw next to each other using the COLZ option (with the violet->red palette).

When I draw them, however, one histogram may have a few bins that have significantly more events than any of the bins in the other histogram. Thus, the two histograms have different color scales, which can lead to some confusion.

I was wondering, short of normalizing both graphs, if there was a simple way to correct for this?


set the same max/min for your 2 histograms

h1->SetMaximum(zmaz); h2->SetMaximum(zmax);