2014-04-17 20 views
0

我想和一個指針符號情節,這就好比是在R:Pyplot - 如何繪製針/直方圖樣式?

x = 1:10 
y = rnorm(10) 
plot(x,y,type ='h') 

有誰知道如何在Python這樣的劇情人物?沒有直方圖,只是xy走向象徵着用針..

>>> jan_avg 
Jan+0 139.833333 
Feb+0 158.318182 
Mar+0 149.500000 
Apr+0 106.750000 
May+0 104.477273 
Jun+0 105.159091 
Jul+0  56.295455 
Aug+0  56.295455 
Sep+0  56.295455 
Oct+0  53.659091 
Nov+0  53.659091 
Dec+0  53.659091 

這裏的第一列是數據幀jan_avg的索引,將是我的x軸..

>>> jan_avg.plot() # What choices should I specify here? 

回答

0

覺得我我明白了:

jan_avg.plot(kind = 'bar')