Plot error in code of Storytelling Through Data Visualization mission 5. Improving the layout and ordering

Screen Link:

My Code:

stem_cats = ['Engineering', 'Computer Science', 'Psychology', 'Biology', 'Physical Sciences', 'Math and Statistics']

fig = plt.figure(figsize=(18, 3))

for sp in range(0,6):
    ax = fig.add_subplot(1,6,sp+1)
    ax.plot(women_degrees['Year'], women_degrees[stem_cats[sp]], c=cb_dark_blue, label='Women', linewidth=3)
    ax.plot(women_degrees['Year'], 100-women_degrees[stem_cats[sp]], c=cb_orange, label='Men', linewidth=3)
    for key,spine in ax.spines.items():
    ax.set_xlim(1968, 2011)
    ax.tick_params(bottom="off", top="off", left="off", right="off")

plt.legend(loc='upper right')

What I expected to happen:
to get the correct plots

What actually happened:

Replace this line with the output/error

Your 1st plot doesn’t match what we expected.

I think compared with the answer and my code was the exact same. I copied and pasted the answer code, commented out my code and I still got the same error

Hi @vma2324

Restarting the terminal might help with the little refresh button, it worked once for me as well. Or just keep trying. The DQ system is a bit weird sometimes.

Thanks! Will do that