1st plot doesn't match

Screen Link:
https://app.dataquest.io/m/144/bar-plots-and-scatter-plots/5/aligning-axis-ticks-and-labels

My Code:

num_cols = ['RT_user_norm', 'Metacritic_user_nom', 'IMDB_norm', 'Fandango_Ratingvalue', 'Fandango_Stars']
bar_heights = norm_reviews[num_cols].iloc[0].values
bar_positions = arange(5) + 0.75
tick_positions = range(1,6)
fig, ax = plt.subplots()

ax.bar(bar_positions, bar_heights, 0.5)
ax.set_xticks(tick_positions)
ax.set_xticklabels(num_cols, rotation=90)

ax.set_xlabel('Rating Source')
ax.set_ylabel('Average Rating')
ax.set_title('Average User Rating For Avengers: Age of Ultron (2015)')
plt.show()

What I expected to happen:
The plots to match and me to move on.

What actually happened:

Your 1st plot does not match what was expected.

They look the same, the code matches so I have no idea what to do next.

1 Like

Hi @liz.tracy09, it also happened to me. Your code is fine.

Try to refresh the page and in case rewrite the code. It should help:)

Ok, thanks! I’ll do that!

Ok so I did refresh and I rewrote the code and am still getting the same error. I’m not sure where to go from here.

1 Like

So 4th times the charm in this case – thanks for your help!

1 Like

Happy it helped!
If you don’t mind could you mark my answer as a solution? :blush: