add legend to frame grapher