Figure/Axes enter and leave events
Illustrate the figure and Axes enter and leave events by changing the frame colors on enter and leave.

import matplotlib.pyplot as plt
def on_enter_axes
Illustrate the figure and Axes enter and leave events by changing the frame colors on enter and leave.

import matplotlib.pyplot as plt
def on_enter_axes