December 30, 2019
Simple Bar Chart
The plt.bar function allows us to create simple bar charts to compare multiple categories of data.
We call plt.bar with 2 arguments, x values and y values.
heights = [88, 255, 365, 687]
x_values = range(len(heights))
from matplotlib import pyplot as plt
If you ax.set_xticklabels are long, you can use the rotation keyword to rotate your labels by a specified number of degrees.
rotation = 30