Image quality issue when saving TH2D's drawn with colz option as a PDF

Are you referring to the “stroke” of the color boxes that makes the height of the white gaps (strips) look smaller in height than the blue bins (boxes)?

See related discussion: Colored 2D histograms in pdf output - #52 by couet

A workaround might be to define a slightly transparent color palette, so that stroke is removed.