Fix some issues with plotting functions with explicit color scales.