Edit g Paste new data set(s) from clipboard

Copies the contents of the clipboard into new data sets. Columns should be separated by tabs, and rows should be separated by newline characters. Most popular programs, Excel for one, copy their matrix contents to the clipboard this way. Each column should represent a data set value array. Since the program cannot know beforehand how the data is organized exactly, you have to choose between XYXY, XYYY and YYYY.

g XYXY (ctrl-shift-V)
Assigns the first two columns to the X and Y of the first pasted data set, column 3 and 4 to the second pasted data set, and so on.
The number of pasted sets will therefore be the number of columns divided by two.

g XYYY (ctrl-V)
Assigns the first column to the X of every pasted data set. Assigns the second column to the Y of the first data set, the third column to the Y of the second data set, and so on. Thus the number of pasted sets will be the number of columns minus 1.

g YYYY
Assumes there's no X data present, therefore the program will generate the X data by itself. The X data will start at 1 and increase by 1 for every data point. The number of pasted sets will be the number of columns, as every column will end up in its own data set.

You can test out the paste command by first copying a data set to the clipboard, and then pasting it again.