'The unit for input to the transform used by ``__call__``
Parameters
unit : {\'points\', \'pixels\'}'

def set_unit(self, unit):

    if (unit not in [u'points', u'pixels']):
        raise ValueError(u"'unit'    must    be    one    of    [    'points'    |    'pixels'    ]")
    self._unit = unit
