drawing DIM histograms/DIMHistogram.cpp