Python How Do I Correct This Matplotlib Plotting Routine Stack

Python How Do I Correct This Matplotlib Plotting Routine Stack