Adapted from Understanding UMAP by Andy Coenen and Adam Pearce (Google PAIR, 2019), used under the Apache License 2.0. The text, figures and data here were rewritten for PaCMAP.