How it works...

The Python Matplotlib module, combined with add-ons such as numpy, creates a very rich programming environment that enables us to perform mathematical computations and plot them in visual charts very easily.

The arange method of numpy does not intend to arrange anything. It means to create a range, which is used instead of Python's built-in range operator. The linspace method can create a similar confusion. Who is lin and in what space?

As it turns out, the name means linear spaced vector.

The pyglet function show displays the graph we created. Calling show() has some side effects when you try to plot another graph after successfully creating the first one.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.58.44.229