Allow the 'data' property to be an array.
Split off setup_gnuplot as a seperate function.