import matplotlib.pyplot as plt male_biology=100-women_degrees["Biology"] female_biology=women_degrees["Biology"] year=women_degrees["Year"] plt.plot(year,male_biology,c="green",label="Men") plt.plot(year,female_biology,c="blue",label="Women") plt.title("Percentage of Biology Degrees Awarded By Gender") plt.legend(loc="upper right") plt.show()
What I expected to happen:
What actually happened:
Your 1st plot doesn't match what we expected.
The plot seems to be correct kindly check once if this is an issue with the platform itself.