\(\newcommand{L}[1]{\| #1 \|}\newcommand{VL}[1]{\L{ \vec{#1} }}\newcommand{R}[1]{\operatorname{Re}\,(#1)}\newcommand{I}[1]{\operatorname{Im}\, (#1)}\)

Arrays, images and plotting

Teaching

We will be using the background from the tutorial pages from the scipy lecture notes:

We’ll cover:

  • numpy arrays;
  • plotting with matplotlib;
  • arrays can be displayed as images;
  • a 2D array is a 2D image;
  • 3D arrays and brain volumes;
  • reshaping and slicing arrays;
  • histograms;

See:

Reading and homework for next week