1 import matplotlib.pyplot as plt 2 import numpy as np 3 4 5 x = np.arange(0, 20, 0.1) 6 7 8 def d_change(d): 9 y = 1/(8*(x/d)+1) 10 return y 11 12 13 y1 = d_change(1) 14 plt.plot(x, y1, label="glass thickness:d=1") 15 y2 = d_change(5) 16 plt.plot(x, y2, label="glass thickness:d=5") 17 y3 = d_change(10) 18 plt.plot(x, y3, label="glass thickness:d=10") 19 y4 = d_change(20) 20 plt.plot(x, y4, label="glass thickness:d=20") 21 plt.xlabel("Air layer thickness:l") 22 plt.ylabel("Heat loss ratio:y") 23 plt.title("Relationship between heat ratio and air layer thickness") 24 plt.legend() 25 plt.show()
111
猜你喜欢
转载自www.cnblogs.com/yangmingustb/p/8835657.html
今日推荐
周排行