implement 3d plotter