/traitograph

A simple tool to generate circular diagrams that are meant to depict traits of real or fictional characters.

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Trait-o-graph

A simple tool to generate circular diagrams that are meant to depict traits of real or fictional characters.

Examples

python traitograph.py --labels curious organized energetic friendly confident --values 5 4 3 4 2 --max-value 7 -o examples/example1.png

./examples/example1.png

python traitograph.py \
    --labels sanguine phlegmatic choleric melancholic           \
    --values 5 3 2 4 --max-value 5 -o examples/example2.png     \
    --dot-size 5 --foreground 255 255 255 --background 46 52 64 \
    --trait-color 80 130 150 100 --line-spacing 60

./examples/example2.png

Requirements

  • Python 3.6+
  • pygame

Supported image formats

  • bmp (uncompressed)
  • tga (uncompressed)
  • png
  • jpeg

Command line arguments

OptionShort formTypeDefaultDescription
--labels-llist of strThe names of the character traits
--values-vlist of intThe values for the character traits
--max-value-mintThe maximum value for any trait
--out-file-ostrchart.pngThe file to which the image will be written
--foreground-fgrgb0 0 0The foreground color of the chart
--background-bgrgb255 255 255The background color of the chart
--trait-color-tcrgba0 190 190 100The color of the colored part of the chart
--outer-padding-oppixel size20The additional padding applied to the chart
--line-spacing-lspixel size40The distance between the lines
--dot-size-dspixel size2The size of the dots
--display-dboolFalseIf True, additionally show the plot in a window