Nov-29-2020, 04:56 PM
Are these two separate pieces of code? Your first post (with the error) has lines in it that aren't found elsewhere. I asked to understand more of what was happening in the first code, but the other listings seem to be something else.
What's the relationship between the lines with the error and the rest of the code you've posted?
In your initial error, the problem is that instead of just being the import of matplotlib.pyplot,
What's the relationship between the lines with the error and the rest of the code you've posted?
In your initial error, the problem is that instead of just being the import of matplotlib.pyplot,
plt
was probably reassigned to a list. Don't do that and the error shouldn't happen. The actual place it's happening isn't in any of the code that's been posted.