adding 3d plot script