A helper script that draws a correlation plot for a prototype of a brand new Popularity metric for qBittorrent.
This script works with Python 3.8-3.11. It doesn't support Python 3.12 since bezier
is not yet available for 3.12.
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
$ python plot.py --help
usage: plot.py [--save PATH] [--font-size FONT_SIZE] [--dpi DPI] [--line-width LINE_WIDTH] [--width WIDTH] [--height HEIGHT] [--help]
Draws a metric correlation plot
options:
--save PATH, -s PATH save the plot as a file
--font-size FONT_SIZE
font size
--dpi DPI image DPI
--line-width LINE_WIDTH, -l LINE_WIDTH
plot line width
--width WIDTH, -w WIDTH
image width
--height HEIGHT, -h HEIGHT
image height
--help show this help message and exit
To show a plot in an interactive UI, run:
python plot.py
To render a customized plot directly to a file, run:
python plot.py -s assets/plot.png --font-size 16 --dpi 300