'set the spine and associated axis to have smart bounds'

def set_smart_bounds(self, value):

    self._smart_bounds = value
    if (self.spine_type in (u'left', u'right')):
        self.axes.yaxis.set_smart_bounds(value)
    elif (self.spine_type in (u'top', u'bottom')):
        self.axes.xaxis.set_smart_bounds(value)
    self.stale = True
