Got it working on Macbook. Problem was type of x,y in figure. Need to save data to text still and fix some minor issues.