fix new bugs in handling of xlim, ylim, margins
Authored by: efiring 2010-07-03
Parent: [r8490]
Child: [r8492]