📌  相关文章
📜  导入 matplotlib 子模块 'style' - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:10.948000             🧑  作者: Mango

代码示例1
import matplotlib.pyplot as plt
import matplotlib.style as 'fivethirtyeight'

#Note that we must use the style.use() 
#function before we create the graph — 
#before calling the plt.plot() function.
#eg

style.use('fivethirtyeight')
plt.plot([1, 2, 3], [5, 2, 7])
plt.show()