<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ignore(self, event):
 """ Ignores events. """

        if hasattr(event, 'inaxes'):
            if event.inaxes != self.ax:
                return True
        else:
            return False