代码
import numpy as np
import matplotlib.pyplot as plt
...
plt.title('money-tax-bonus-salary')
plt.xlabel('money')
plt.ylabel('tax/bonus/salary')
plt.plot(moneyList,minTaxList,label='min tax')
plt.plot(moneyList,minSalaryList,label='min salary')
plt.plot(moneyList,maxSalaryList,label='max salary')
plt.plot(moneyList,minBonusList,label='min bonus')
plt.plot(moneyList,maxBonusList,label='max bonus')
pl.legend()
plt.show()
summary.png效果图
网友评论