Fixed an error that allowed duplicate data to enter into the database.
That duplicate data prevented the plots from being generated.