I have installed matplotlib and numpy through visual studio, python environments. The following code works fine (plots a sine wave), but the first two lines (imports) are flagged as error/warning in Visual Studio's editor (with that jagged red underline). Is there a reason for that?
I am VERY new to python, so please tell me if I have to provide further information.
import matplotlib.pyplot as plt
import numpy as np
x=np.arange(0,2*np.pi,0.01)
y=np.sin(x)
plt.plot(x,y)
plt.show()