x_label=['2_3', '2_4', '2_5', '2_6', '2_7', '2_8', '2_9', '2_10', '2_11', '2_12', '2_13', '2_14']
# -*- coding: utf-8 -*- from numpy import * import matplotlib.pyplot as plt x_label=[] i=3 while i<=14: title="2_"+str(i) x_label.append(title) i=i+1 print x_label plt.plot([2,3,2,4,5,6,5,6,7,4,6,3,4]) plt.show()