bug fixes - plot right padding was falsely calculated.