Answers for "bar chart with x-ticks"

0

bar chart with x-ticks

plt.bar(weekday_averages['weekday'], weekday_averages['casual'])
plt.xticks(ticks=[0, 1, 2, 3, 4, 5, 6],
          labels=['Sunday', 'Monday', 'Tuesday', 'Wednesday',
                 'Thursday', 'Friday', 'Saturday'],
          rotation=30)
plt.show()
Posted by: Guest on August-10-2021

Python Answers by Framework

Browse Popular Code Answers by Language