fig, ax = plt.subplots() ax.plot(women_degrees['Year'], women_degrees['Biology'], c='blue', label='Women') ax.plot(women_degrees['Year'], 100-women_degrees['Biology'], c='green', label='Men') ax.tick_params(bottom="off", top="off", left="off", right="off") # Add your code here for key,spine in ax.spines.items(): spine.set_visible(False) ax.legend(loc='upper right') ax.set_title('Percentage of Biology Degrees Awarded By Gender') plt.show()
What I expected to happen:
What actually happened:
Answer is not as expected
Your 1st plot doesn't match what we expected.