# SOAR: spilling with orthogonality-amplified residuals

This directory contains the scripts used to generate the plots in the Methods section of the paper. To run these scripts:

* Use a modern distro of Linux with Python 3.9 (other versions of Python may also work, but the plots were produced with Python 3.9)
  * Note: a LaTeX installation may be required to generate some plots
* Install the dependencies listed in `requirements.txt`
* Use `python utils_test.py` to sanity-check the setup
* Run `plots.sh` to produce the  plots

# File / Figure Mapping

Figure 1: `out/rank-score1.pdf`

Figure 2: `out/score-angle.png`, `out/score-norm.png`

Figure 4a: `out/a1-a2-scatter.png`

Figure 4b: `out/angle-scatter.png`

Figure 5a: `out/kmr.pdf`

Figure 6: `out/a1-a3-scatter.png`

Figure 7: `out/grouped-means.pdf`

Figure 8: `out/lambda_effect.pdf`

Figure 9: `out/size_plot.pdf`
