Matplotlib - Performance and Large Data
Given the code below, what will be the length of the simplified path vertices?
import matplotlib.path as mpath import matplotlib.pyplot as plt verts = [(0, 0), (0.1, 0.1), (0.2, 0.2), (5, 5)] p = mpath.Path(verts) p._simplify_threshold = 1.0 simplified = p.cleaned() print(len(simplified.vertices))
