Hint: You can adjust the default video playback speed in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please see our video player troubleshooting guide to resolve the issue.

Numpy Review (Optional)

Give Feedback

One of the many dependencies of matplotlib is called numpy, which is short for “numerical Python.” It’s a very popular library used for scientific computing.

numpy provides objects that can represent more complex data than the built-in data types in Python can. It also provides efficient yet advanced mathematical operations you can perform on this data.

In this course, you’ll use numpy mostly to generate pseudorandom numbers, which you’ll then store in multidimensional arrays.

Comments & Discussion

Anonymous on Oct. 23, 2019

I think you meant np.column_stack((a,b))

Austin Cepalia RP Team on Oct. 23, 2019

That’s correct. I’ll have this video updated shortly

Pradeep Kumar on Feb. 2, 2020

Thanks very much Austin, your tutorial is helpful to many, perticualary to those who are very confused because of too much of different tools in python for doing the same thing. The zen of python syas “There should be one– and preferably only one –obvious way to do it.” , if that is so why there are so many packages for doing the same stuff, example: matplotlib (the oop version, and the non oop version), altaire, bokeh, ggplot, seaboarn, pandas plot, plotly and so on…, I mean I was very confused until I find this tutorial and the other one in realpython which tells how matplotlib also exists in stateless and stateful versions, Really it saved me. But I wonder why, there are so many libraries for doing the same thing, its just really frustating and not one of them is easy to learn. I am really thankful that you made this tutorial.

Austin Cepalia RP Team on Feb. 6, 2020

@Pradeep Kumar thanks for the kind words, I’m glad the course was useful to you. You’re absolutely right about the zen of Python. I’m not entirely sure if this is the best answer to your question, but if I had to guess I would say that there exit so many libraries, frameworks, and packages because the “best” way of doing something for one person might not be the best way of doing it for someone else. It’s like asking why there are so many different cars; they all get you from place A to place B, but some are faster on road, some can carry a heavy load, and some just look fancy! It’s a matter of personal preference. Likewise, the different plotting libraries accomplish basically the same thing but in radically different ways. They also have different features and capabilities.

Pradeep Kumar on Feb. 9, 2020

Thanks for your reply, Can you suggest good book which is based on stateless approach of matplotlib, Sorry this might be an offtopic question.

Austin Cepalia RP Team on Feb. 13, 2020

@Pradeep Kumar I’m not sure of any books specifically about the stateless approach to matplotlib, but because the stateless approach is so common, I would imagine any good book on matplotlib would cover it extensively. Since the stateless approach makes use of object-oriented Python concepts, you may be interested in strengthening those skills too. I’ve got a course on that here if you’re interested.

Pradeep Kumar on Feb. 19, 2020

Thanks, I have already done your course on oop

Become a Member to join the conversation.