Solving attributeerror: module ‘Matplotlib’ has no attribute ‘plot‘

After searching, it is found that the way to write when importing the package is wrong.

That’s what I wrote

import matplotlib as plt

That’s OK

import matplotlib.pyplot as plt

 

Read More: