Correct type error in enable matplotlib.