returns the plotted figure