課程
/后端開(kāi)發(fā)
/Python
/機(jī)器學(xué)習(xí)-實(shí)現(xiàn)簡(jiǎn)單神經(jīng)網(wǎng)絡(luò)
matlab 的label 如何顯示中文哈?
2017-04-23
源自:機(jī)器學(xué)習(xí)-實(shí)現(xiàn)簡(jiǎn)單神經(jīng)網(wǎng)絡(luò) 4-4
正在回答
from matplotlib.font_manager import FontPropertiesplt.xlabel('花瓣的長(zhǎng)度', fontproperties=font_set)plt.ylabel('花莖的長(zhǎng)度', fontproperties=font_set)
from matplotlib.pylab import mpl
mpl.rcParams['font.sans-serif'] = ['SimHei']
plt.scatter(x[:50,0],x[:50,1],color='red',marker='o',label='setosa');
plt.scatter(x[50:100,0],x[50:100,1],color='blue',marker='x',label='versicolor');
plt.xlabel('花徑長(zhǎng)度')
plt.ylabel('花瓣的長(zhǎng)度')
plt.legend(loc = 'upper left');
lxus
舉報(bào)
人工智能時(shí)代,你準(zhǔn)備好成為抓住機(jī)遇的那百分之二嗎。
2 回答matplotlib怎么才能顯示中文?
2 回答1.中文顯示不出 2.markers是什么?從哪里的?有圖
3 回答python中用matplotlib作圖漢字怎么顯示,顯示的是小方塊
1 回答讓圖形在單獨(dú)的窗口中顯示
2 回答數(shù)據(jù)顯示問(wèn)題
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2017-10-29
from matplotlib.font_manager import FontProperties
plt.xlabel('花瓣的長(zhǎng)度', fontproperties=font_set)
plt.ylabel('花莖的長(zhǎng)度', fontproperties=font_set)
2017-05-20
from matplotlib.pylab import mpl
mpl.rcParams['font.sans-serif'] = ['SimHei']
2017-04-23
plt.scatter(x[:50,0],x[:50,1],color='red',marker='o',label='setosa');
plt.scatter(x[50:100,0],x[50:100,1],color='blue',marker='x',label='versicolor');
plt.xlabel('花徑長(zhǎng)度')
plt.ylabel('花瓣的長(zhǎng)度')
plt.legend(loc = 'upper left');