DATA2 = [('a', 3), ('b', 4), ('c', 4), ('d', 3), ('e', 1), ('f', 4), ('a', 
    5), ('b', 7), ('c', 7), ('d', 6), ('e', 4), ('f', 7)]
plotData(DATA, 'blue')
plotData(DATA2, 'red')
plt.gcf().savefig('correlation.png')
Drawing a correlation graph in matplotlib