Usually in matplotlib and numpy data is stored as two-column array such as
x-axis is dat[:,0] and y-axis is dat[:,1].
To combine existing x-array and y-array into this form, use
dat = np.column_stack([x,y])
rename 's/^fgh/jkl/' fgh*
util-linux
version, with syntax rename fgh jkl fgh*