produces a figure