Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 1.37 KB

File metadata and controls

20 lines (14 loc) · 1.37 KB
title NumPy and Matplotlib
author Karthik Thiagarajan

This module is a self-contained introduction to the libraries NumPy and Matplotlib. The module is divided into five notebooks:

  • Vectors
  • Plotting Simple Curves
  • Matrices
  • Sampling from Distributions, Bar Plots, Histograms and Scatter plots
  • NumPy arrays

The lectures can be found in this playlist:

<iframe width="560" height="315" src="https://www.youtube.com/embed/videoseries?si=oLvIA5Zm3evS0vot&list=PLnr10Udg0KnQaYhq8v-SUUCUP8NLwPTVN" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>

We will start with the simplest of NumPy arrays, 1D arrays that can be used to represent vectors. Then we will look at simple line plots that we can draw with Matplotlib. Then we move on to 2D arrays that can be used to represent matrices. From there, we study how we can sample from distributions and represent samples using plots such as histograms and scatter plots. Finally, we return to NumPy arrays and study them in greater detail.

The five notebooks are best read in the order presented here. If you are already familiar with some of the basic concepts of NumPy or Matplotlib, then you can pick and choose whatever seems unfmailiar.