Update plot.php