plotting.utils._limits_helper: raise ValueError instead of assert and handle case where x1 == x2