I fully agree to *kikoco*. But I tested your code and it indeed doesn't work neither in Spyder nor in any other Python distribution. That is because the module `*numpy*` has no attribute `*arrange*`, exactly what the error message states. The attribute your are trying to use is ` *arange*`, which exists and works. Some bad people might now say, that in this case you are trash, not Spyder - but I won't do something like that.
I also noticed that `arange` isn't English, which isn't Spyder's fault, but Numpy's. However, it is actually English. The intended name is *a range* which leads to a function, called *arange*. Kind regards, yfprojects [email protected] schrieb am Mittwoch, 31. März 2021 um 07:54:11 UTC: > 2021-03-30 2:01 GMT+02:00, Chris <[email protected]>: > > I am having some serious problems with Spider, enough to make me consider > > uninstalling it as a piece of trash. It will not run basic numpy and > > matplotlib commands and instead gives me error messages. Here is my code > > (that I actually cut and pasted from elsewhere, just because I am still > > learning and am trying to teach myself how all this stuff works). > > Calling the work of others a piece of trash is not a good way to ask for > help. > > > > > import numpy as np > > import matplotlib.pyplot as plt > > x = np.arrange(0, 10, 0.1) > > y = np.sin(x) > > plt.plot(x, y) > > plt.savefig("graph.png") > > plt.show() > > > > Any reason why Spider would reject this code? I thought Spider was going > to > > > > be really cool. It seemed like it. Now it is really starting to SUCK!!!!! > > There is a misconception. Spyder is not Python or a Python > distribution. In python there are several concepts that need to be > correctly understood in order to make things work. > > If you are a newcomer it could be difficult but it you are polite and > ask the correct questions maybe we can help you. I wouldn't consider > SUCK and TRASH the expected behaviour of a well mannered and > respectful person. > > So, if you want to start a new polite conversation telling us how did > you install python?, how did you install Spyder?, are you using a > virtual environment?, how did you install numpy, matplotlib,...?, etc, > maybe we can bring you some help. > > Kind regards. > > > > > -- > > You received this message because you are subscribed to the Google Groups > > "spyder" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to [email protected]. > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/spyderlib/855c209d-82a2-4d2b-98f9-bdcaa0a0e037n%40googlegroups.com > . > > > -- You received this message because you are subscribed to the Google Groups "spyder" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/629cad86-e771-45e2-ad52-a4b00198afbbn%40googlegroups.com.
