In order to reverse the comparison plot lines, the certain x/y/z coordinates of the global variable must be negated. When one checks the "negate values" checkbox, I don't want to change the original data (in this case, the global variable), otherwise it will make reverting the lines after unchecking the boxes unnecessarily complicated, therefore I pass in a substitute variable, containing the negated values for the line.