Slightly better graph for larger files (still not perfect, it should adapt automatically)