New to Python and programming in general: trying to plot data through matplotlib, keep getting "builtins.IndexError: list index out of range." : I am pretty new to programming. My main goal is to plot csv data taken from sensors thousands of rows long. I decided to figure out how to plot simple data first. I am currently trying to use pandas and matplotlib.pyplot. On the matplotlib page, they have the direct code to graphing numerical data.

[Matplotlib tutorial][1]

[The direct code from Pyplot on graphing data in array][2]

I entered the code exactly as is and I get this error: "builtins.IndexError: list index out of range."

[The code I entered into the Wing shell][3]

[The python shell error I received][4]

[The reference script python said was in conflict][5]
  
I'm pretty lost and really don't know what I'm missing. Any help would be much appreciated. Thank you very much in advance!

  [1]: https://matplotlib.org/users/pyplot_tutorial.html
  [2]: https://i.stack.imgur.com/Zlvkx.jpg
  [3]: https://i.stack.imgur.com/6a1CX.jpg
  [4]: https://i.stack.imgur.com/AURqJ.jpg
  [5]: https://i.stack.imgur.com/GHv2l.jpg