I have a bar chart:
x_axis = [rate_score for rate_score in hotels_ratings_count_dict.keys()]
y_axis = [num_hotels for num_hotels in hotels_ratings_count_dict.values()]
plt.bar(x_axis,y_axis, width=0.3)
plt.title("Distribution of hotel rate score")
plt.xlabel("Rate Score")
plt.ylabel("Number of hotels")
plt.grid(True)
plt.show()
And the plot looks like this:
I would like to try the following:
- Add a curve that goes above the top of bars (like a left-skewed distribution curve)
- Insert a vertical line to mean and median (will be manually calculated)
Could anyone teach me how to do this please? Many thanks!