<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pan(self, value):
 """Pan translation."""

        assert len(value) == 2
        self._pan[:] = value
        self._constrain_pan()
        self.update()