Updated plot.php