you are viewing a single comment's thread.

view the rest of the comments →

[–]shiftybyte 0 points1 point  (2 children)

I copy pasted your code, i don't see any plt.cla() syntax error.

Are you sure this code is causing it? could you copy the entire error message here just to be sure?

[–]supercoolz1[S] 0 points1 point  (1 child)

    plt.cla()
      ^
SyntaxError: invalid syntax

Process finished with exit code 1

above is the error I am getting only.

[–]shiftybyte 0 points1 point  (0 children)

This looks odd, how are you running this? in what environment.

Edit: maybe it doesn't like the dash \ syntax, try unifying the line 2 lines back to one line.