Switch sample-nested-data to figure for pdf