标签:gif === lin range har col param school atp
图 11.2
import matplotlib.pyplot as plt import matplotlib as mpl import numpy as np plt.axes([0.1, 0.1, 0.8, 0.8], frameon=True, facecolor="y", aspect="equal") plt.plot(2+np.arange(3), [0, 1, 0]) plt.title("Line Chart") plt.text(2.25, 0.8, "FONT") plt.show()
==================================
图 11.3
import matplotlib.pyplot as plt import numpy as np plt.rcParams["lines.linewidth"]=8.0 plt.rcParams["lines.linestyle"]="--" plt.rcParams["font.family"]="serif" plt.rcParams["font.serif"]="New Century Schoolbook" ### plt.rcParams["font.style"]="normal" plt.rcParams["font.variant"]="small-caps" plt.rcParams["font.weight"]="black" plt.rcParams["font.size"]=12.0 plt.rcParams["text.color"]="blue" plt.axes([0.1, 0.1, 0.8, 0.8], frameon=True, facecolor="y", aspect="equal") plt.plot(2+np.arange(3), [0, 1, 0]) plt.title("Line Chart") plt.text(2.25, 0.8, "FONT") plt.show()
==================================
图 11.4
import matplotlib.pyplot as plt import numpy as np plt.axes([0.1, 0.1, 0.8, 0.8], frameon=True, facecolor="y", aspect="equal") plt.plot(2+np.arange(3), [0, 1, 0], linewidth=8.0, linestyle="--") plt.title("Line Chart", color="red", family="New Century Schoolbook", style="normal", variant="small-caps", weight="black", size=18) ### plt.text(2.25, 0.8, "FONT", color="blue", fontdict={"family":"New Century Schoolbook", "style":"normal", "variant":"small-caps", "weight":"black", "size":28}) ### plt.show()
==================================
图 11.5
==================================
《Python数据可视化之matplotlib实践》 源码 第四篇 扩展 第十一章
标签:gif === lin range har col param school atp
原文地址:https://www.cnblogs.com/devilmaycry812839668/p/13258734.html