figure: add draw() to update the figure