Figure generating script and data