Skip to content

Jamim/popularity-metric-plot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Popularity metric plot 📉

python

A helper script that draws a correlation plot for a prototype of a brand new Popularity metric for qBittorrent.

plot

Supported Python versions

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.

Installation

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Usage

$ 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

Examples

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

About

A helper script that draws a correlation plot for a prototype of a brand new Popularity metric for qBittorrent.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages