def compute_markevery(data, max_points=200):
    """Compute number of points that will be dropped to compress the plot."""
    num_points = len(data)
    markevery = max(num_points // max_points, 1)

    return markevery