SyntaxFix
Write A Post
Hire A Developer
Questions
Change that import to
from matplotlib.pyplot import *
Note that this style of imports (from X import *) is generally discouraged. I would recommend using the following instead:
from X import *
import matplotlib.pyplot as plt plt.plot([1,2,3,4])