tag:blogger.com,1999:blog-7050224734475821462.post1119259663986057168..comments2023-06-13T18:11:05.814+08:00Comments on Yuren's Info Area: Python 初體驗 - 好吃不黏牙!Yuren Juhttp://www.blogger.com/profile/09921699211443539030noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-7050224734475821462.post-12220168013015742682010-07-09T13:49:04.781+08:002010-07-09T13:49:04.781+08:00或許作些正規化再丟進 gnuplot 就可以了 :)或許作些正規化再丟進 gnuplot 就可以了 :)Yuren Juhttps://www.blogger.com/profile/09921699211443539030noreply@blogger.comtag:blogger.com,1999:blog-7050224734475821462.post-88391307930250349802010-07-09T13:47:28.873+08:002010-07-09T13:47:28.873+08:00感謝你,但好像跟我想的不同。python 2.7 有個新的 Counter 可以算次數, 是 dic...感謝你,但好像跟我想的不同。python 2.7 有個新的 Counter 可以算次數, 是 dict 的subclass, 但是plot 好像不吃 dict,Counter我猜應該也不行<br />g = Gnuplot.Gnuplot ()<br />d={'eggs': 2, 'sausage': 1, 'bacon': 1, 'spam': 500}<br />g.plot (d)<br /><br />另外發現一個matplotlib有提供一個 histogram, 看起來好像有點機會lovemagichttps://www.blogger.com/profile/13569576469805137587noreply@blogger.comtag:blogger.com,1999:blog-7050224734475821462.post-54706607665632144212010-07-07T18:34:08.428+08:002010-07-07T18:34:08.428+08:00上網找一下資料看看
http://gist.github.com/466538上網找一下資料看看<br />http://gist.github.com/466538Yuren Juhttps://www.blogger.com/profile/09921699211443539030noreply@blogger.comtag:blogger.com,1999:blog-7050224734475821462.post-69199313928731230202010-07-07T18:07:31.754+08:002010-07-07T18:07:31.754+08:00請教一下,python 有個一維 list, 例如 [0.8, 1.7, 0.8, 0.7, 2.0...請教一下,python 有個一維 list, 例如 [0.8, 1.7, 0.8, 0.7, 2.0,1.5] , 我要如何用gnuplot畫出 x軸是data 間距,y軸是 count, 以這個例子來說,我想要 x 軸是 0~1 的有3筆, 1~2 的有2筆,2~3 的有1筆,要如何做呢?Anonymousnoreply@blogger.com