2D and 3D plotting further implementation