(self)
Recalculates some cached scale factors used within the class
Recalculates some cached scale factors used within the class
Recalculates some cached scale factors used within the class
def _recalc_scale_factors(self):
        """Recalculates some cached scale factors used within the class"""
        if self._bounds is None:
            return
        self._sx = self._bbox.width / self._bounds.width
        self._sy = self._bbox.height / self._bounds.height
        self._ox = self._bounds.left
        self._oy = self._bounds.top
        self._ox2 = self._bbox.left
        self._oy2 = self._bbox.bottom
def _recalc_scale_factors ( self ) : if self . _bounds is None : return self . _sx = self . _bbox . width / self . _bounds . width self . _sy = self . _bbox . height / self . _bounds . height self . _ox = self . _bounds . left self . _oy = self . _bounds . top self . _ox2 = self . _bbox . left self . _oy2 = self . _bbox . bottom