Root and python

TGraph

      
      from ROOT import *
      from numpy import array
      x = [1,2,3,4]  # a list 
      y = [5,6,7,8]  # a list
      graph = TGraph(len(x),array(x,'f'),array(y,'f')) # convert lists to arrays