Plot not robust with respect to Inf values