I am trying to make side by side bar graphs with overlays. The following code only produces the second plot, and makes two separate windows of blank plots - one on the left side and one on the right. Any help is appreciated!
import matplotlib.pyplot as plt
## Test data set
plt.subplot(1, 2, 1)
health_sex1.plot(kind = 'bar', stacked = True)
plt.title("Health with Sex Overlay")
plt.xlabel("Health")
plt.ylabel("Count")
plt.subplot(1, 2, 2)
health_educ1.plot(kind = 'bar', stacked = True)
plt.title("Health with Education Overlay")
plt.xlabel("Health")
plt.ylabel("Count")
plt.show