A protein contact map is a simplified representation of protein structure that records which pairs of residues are close to each other in space. Here, a residue means one amino-acid unit of the protein chain, and two residues are treated as being in contact when the distance between them is below a chosen cutoff. In this example, we use myoglobin to compute a residue distance matrix, convert it into a binary contact map, and visualize the result alongside the protein's 3D structure.