plot3 script and diagramm updated