This stand-alone notebook reproduces the plots shown in Figures 3 and 4 of the paper
"An algorithm underlying directional hearing in fish"
👉 For a static preview, open the notebook's outputs on GitHub.
You can execute the notebook using a free runtime hosted by Google Research. Simply click the badge below:
No specific hardware is required. The code runs on Windows, macOS, and Linux systems.
-
Install conda for Python 3.x.
-
Clone the repository and change into the folder containing this README
-
Run the following commands in your terminal:
conda create -n veith2026 'python>=3.8' numpy scipy pandas matplotlib seaborn jupyter -c conda-forge conda activate veith2026 jupyter lab generate_figures_3_4.ipynb
These steps typically take less than 10 minutes. The notebook will download ~1.8 GB to your hard drive. The code is computationally cheap, so exectution is primarily limited by your download speed.
Alternatively, you can open the notebook in an existing Jupyter environment after installing the required packages:
numpyscipypandasmatplotlibseaborn
The behavioral dataset used for generating the plots is available at: