draw the result as a figure