drawing 2D plot