# -*- coding: utf-8 -*-
from matplotlib import pyplot
import matplotlib.pyplot as plt
names = ['63',' ',' ','125',' ',' ','250',' ',' ','500',' ',' ','1k',' ',' ','2k',' ',' ','4k']
x = range(19)
y_40 = [45,44,40,37,30,35,31,32,31,28,27,29,30,30,29,28,28,28,29]
y_45 = [41,51,45,39,33,39,38,35,35,39,38,38,39,37,35,31,28,27,28]
y_50 = [46,51,45,44,40,45,45,45,42,43,44,44,44,42,40,38,33,31,30]
y_55 = [56,57,46,45,47,51,50,53,52,46,47,47,46.5,45.5,44,41,38,33,30]
y_60 = [55,57,47,46,49,53,52,53,51,50,52,53.5,55,53,51,45,41,35,33]
y_65 = [60,62,52,51,54,57,56,57,55,54,56,58.5,60,57,54,51.5,45.5,40,39]
plt.plot(x, y_40, ':', marker='o', ms=6,label='40')
plt.plot(x, y_45, '--', marker='+', ms=6,label='45')
plt.plot(x, y_50, '--', marker='x', ms=6,label='50')
plt.plot(x, y_55, '-.', marker='^', ms=6,label='55')
plt.plot(x, y_60, '--', marker='d', ms=6,label='60')
plt.plot(x, y_65, marker='s', ms=6,label='65')
plt.legend()
plt.margins(0.03)
plt.subplots_adjust(bottom=0.10)
plt.xlabel("Frequency [Hz]")
plt.ylabel("A-weighted sound pressure level [dB]")
plt.title("Fig. 1. Frequency characteristics of road traffic noise \naccording to window opening ratio.")
plt.xticks(x, names, rotation=1)
pyplot.yticks([0,10,20,30,40,50,60,70])
plt.show()
VR | 论文部分实现
最新推荐文章于 2022-01-07 17:10:17 发布