Code style.
Fix contingency indexing.

Fixes a bug, where contingency column could not be indexed with
attribute name.
Rename color palette fields.
Fix distribution drawing.
Fix centering of vertical axis labels.
Allow manual specification of label y coordinate.
Allow overriding axis bounds.