accessiplot.detection.visual_complexity.get_complexity

accessiplot.detection.visual_complexity.get_complexity(plt, threshold: float = 0.5)[source]

Given a line chart, calculate its visual complexity based on Pixel Approximate Entropy.

Parameters:
plt: matplotlib.plt

Matplotlib pyplot object

threshold: float

Threshold to detect if the visual complexity score is above it.

Returns:
score: float

The visual complexity score based on Pixel Approximate Entropy.

References