Refactor to separate plotting from exportable function. Use puzlet.org utilities.