看板 Python 關於我們 聯絡資訊
請問一下各位大大 如果我只是想要畫個table而已 我要怎麼改下面的範例呢? 感謝 http://stackoverflow.com/questions/8524401/how-can-i-place-a-table-on-a-plot-in-matplotlib -- -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.217.224 ※ 編輯: left 來自: 140.112.217.224 (06/17 15:47)
grapherd:用pyplot.table, 就是第二個例子,the_table = plt.table( 06/17 16:29
grapherd:cellText=........, loc=你要的位置) 06/17 16:30
left:可是我怎樣才能把 plt.plot(y) 的相關東西移掉呢? 06/17 16:47
left:我的意思是 把背景整個移掉 留下 table 要怎麼設定阿? 06/17 16:48
left:隱藏起來也可以 06/17 16:49
grapherd:ax=gca(),ax.spines['right'].set_color('none')還有 06/18 17:21
grapherd:'top', 'bottom', 'left'都 set_color('none') 06/18 17:22
grapherd:最後plt.xticks([]), plt.yticks([]),plt.plot()背景去除 06/18 17:22
left:可以了 非常感謝 ^^ 06/19 03:00