Check: Matplotlib Basics
You have time array t and voltage array V. Which line draws the voltage line on the plot?