plt設置橫縱坐標名稱


#設置橫縱坐標的名稱以及對應字體格式
font2 = {'family' : 'Times New Roman',
    'weight' : 'normal',
    'size' : 15
    }
plt.xlabel('Year',font2)
plt.ylabel('Citations',font2)

 

fig = plt.figure(figsize=(20, 12), dpi=80)

# 設置坐標軸刻度
y = range(0,400,50)

plt.plot(table[2][:116], 'ro-', label='Einstein. Albert; 1905')
plt.yticks(y)
plt.legend()

#設置橫縱坐標的名稱以及對應字體格式
font2 = {'family' : 'Times New Roman',
    'weight' : 'normal',
    'size' : 15
    }
plt.xlabel('Distance to the publication year',font2)
plt.ylabel('Citations',font2)

plt.show()


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM