def get_stepsize(traj, min_points=200):
    """Returns a stepsize to display at least min_points data points on the graph"""
    n = traj.n_frames
    if n <= min_points:
        return 1
    else:
        return n // min_points