matrix.Matrix.plot

Matrix.plot()

Visualise the percentages of all choices.

Examples

>>> import matrix
>>> m = matrix.Matrix(
...     criteria=('taste', 'color'),
...     weights=(7, 3)
... )
>>> m.rate_choices({
...     'apple': {'taste': 7, 'color': 5},
...     'orange': {'taste': 9, 'color': 3}
... })
>>> m.plot()  # doctest: +SKIP

(Source code, png, hires.png, pdf)

../../_images/matrix-Matrix-plot-1.png