Plot 2D/3D mathematic functions.