No description
  • Python 62.1%
  • TeX 37.9%
Find a file
2017-05-09 17:03:49 -07:00
statdials Use TeX Gyre Heros font by default. 2017-05-09 17:03:25 -07:00
.gitignore Initial commit 2017-05-09 16:04:03 -07:00
example.png Initial commit of working (but limited) statdials code. 2017-05-09 16:21:54 -07:00
example.py Initial commit of working (but limited) statdials code. 2017-05-09 16:21:54 -07:00
LICENSE Initial commit 2017-05-09 16:04:03 -07:00
README.md Initial commit of working (but limited) statdials code. 2017-05-09 16:21:54 -07:00
setup.py Bump version to 0.1.2. 2017-05-09 17:03:49 -07:00

StatDials

This is a pre-alpha python library to generate cute metric dials.

Installation

pip install statdials

Example usage

from statdials import StatDials

sd = StatDials(
[
    [
        {'metric': 1.0, 'uncertainty': 0.01, 'weight': 0.4, 'color': '{rgb:red,4;green,2;yellow,1}'},
        {'metric': 1.0, 'uncertainty': 0.01, 'weight': 0.6, 'weightOffset': 0.4, 'color': 'red'},
    ],
    [
        {'metric': 1.0, 'uncertainty': 0.01},
        {'metric': 1.0, 'uncertainty': 0.01},
        {'metric': 1.0, 'uncertainty': 0.01},
    ],
]
)

sd.generate_png()

Example stat dials