hsadok / plot_style

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plot Style

Setup

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.

Ubuntu (or other Debian-based distro)

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

macOS

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

Example

Check plot.py for an example on how to produce the following line and bar plots:

About

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%