def _all_line_collection_ops(lc: LineCollection): lc.merge(1) lc.scale(2, 2) lc.translate(2, 2) lc.rotate(10) lc.reloop(1) lc.skew(4, 4) lc.bounds()
def reloop(lines: LineCollection, tolerance): """ Randomize the seam location for closed paths. Paths are considered closed when their beginning and end points are closer than the provided tolerance. """ lines.reloop(tolerance=tolerance) return lines
def reloop(lines: vp.LineCollection, tolerance): """Randomize the seam location of closed paths. When plotted, closed path may exhibit a visible mark at the seam, i.e. the location where the pen begins and ends the stroke. This command randomizes the seam location in order to help reduce visual effect of this in plots with regular patterns. Paths are considered closed when their beginning and end points are closer than some tolerance, which can be set with the `--tolerance` option. """ lines.reloop(tolerance=tolerance) return lines