Introduction to Python for Finance
Adina Howe
Instructor
import matplotlib.pyplot as plt
plt.hist(x=prices, bins=3)
plt.show()
import matplotlib.pyplot as plt
plt.hist(prices, bins=6)
plt.show()
import matplotlib.pyplot as plt
plt.hist(prices, bins=6, normed=1)
plt.show()
import matplotlib.pyplot as plt
plt.hist(x=prices, bins=6, normed=1)
plt.hist(x=prices_new, bins=6, normed=1)
plt.show()
import matplotlib.pyplot as plt
plt.hist(x=prices, bins=6, normed=1, alpha=0.5)
plt.hist(x=prices_new, bins=6, normed=1, alpha=0.5)
plt.show()
import matplotlib.pyplot as plt
plt.hist(x=prices, bins=6, normed=1, alpha=0.5, label="Prices 1")
plt.hist(x=prices_new, bins=6, normed=1, alpha=0.5, label="Prices New")
plt.legend()
plt.show()
Introduction to Python for Finance