I am producing a scatter plot wher a user can input a choice of up to around 200 variables in the x and y axis, however for some of the variables if you select them for both the x and y the scatter plot does not produce a staight line as it should.

Has anybody come across this before and is there a solution.

Thanks