I have a code similar to the one below:
import matplotlib.pyplot as plt
a = [1,2,3]
b = [3,4,5]
plt.scatter(a,b)
plt.grid()
plt.yscale("linear")
plt.show()
The first couple times I run it, it works fine but afterwards it gives me the error:
'NoneType' object has no attribute 'sqrt'
which seems to be located somewhere deep in pyplot rather than it being a problem with my code. Is this something others have encountered?