I installed Matplotlib via Anaconda from here: https://anaconda.org/conda-forge/matplotlib I used the very first command in Anaconda prompt.
But when I tried to plot from python (Spyder) as the following, I get the message: ModuleNotFoundError: No module named 'matplotlib.plot'
import numpy as np
import matplotlib.plot as plt
x = np.linspace(0, 2*np.pi, 100)
y = np.sin(x)
plt.plot(x,y)
I have installed numpy, pandas and such using the same method and they work well. How can I fix this?
Thank you so much.
pyplot
. Hence you needimport matplotlib.pyplot as plt
. – ImportanceOfBeingErnest