def shift(self, top=None, right=None, bottom=None, left=None):
top = top if top is not None else <NUM_LIT:0><EOL>right = right if right is not None else <NUM_LIT:0><EOL>bottom = bottom if bottom is not None else <NUM_LIT:0><EOL>left = left if left is not None else <NUM_LIT:0><EOL>coords = np.copy(self.coords)<EOL>coords[:, <NUM_LIT:0>] += left - right<EOL>coords[:, <NUM_LIT:1>] += top - bottom<EOL>return self.copy(coords=coords)<EOL>
Shift/move the line string from one or more image sides.

Parameters
----------
top : None or int, optional
    Amount of pixels by which to shift the bounding box from the
    top.

right : None or int, optional
    Amount of pixels by which to shift the bounding box from the
    right.

bottom : None or int, optional
    Amount of pixels by which to shift the bounding box from the
    bottom.

left : None or int, optional
    Amount of pixels by which to shift the bounding box from the
    left.

Returns
-------
result : imgaug.augmentables.lines.LineString
    Shifted line string.