Exemple #1
0
def margins_test():
   G = Line([[8,12,11,16,22],[7,8,10,12,19,23]], encoding='simple')   #实际数据
   G.size(1000, 200) #整个图大小
   G.label(1,5,10,20,40,60,100,160,260,420,68,1100,1780) #下标量
   G.fill('bg', 's', 'e0e0e0') #背景
   G.color('black', 'blue')  #线颜色
   G.margin(20,20,20,30,80,20)  #图位置
   G.legend('Merge', 'BigTable')  #线标签
   print G