The script requires LaTeX to be installed, it uses it to render the text in the figures as well as to adjust the figure and font sizes based on the target document style.
Use the following command to install LaTeX:
sudo apt update
sudo apt install texlive-base texlive-latex-recommended texlive-fonts-recommended texlive-publishers texlive-latex-extra
If you have trouble when running, you may also consider installing the following additional packages:
sudo apt install cm-super texlive-fonts-extra dvipng
Install the python dependencies using pip:
pip3 install -r requirements.txt
Install mactex and other dependencies using homebrew:
brew install --cask mactex
brew install libpng freetype pkg-config fontconfig
Install the python dependencies using pip:
pip3 install -r requirements.txt
Check plot.py
for an example on how to produce the following line and bar plots: