Fixed plotting of dataframes
Created by: John-P
This fixes plotting of dataframes for trappy origin. I have also added this fix head to the bar-plots branch which also abstracts the resolving of constraints out of LinePlot and implements a BarPlot. However, I have submitted this separately incase the bar-plot branch is too difficult to merge and the fix is needed quickly.