How can I change the format of the numbers in the x-axis to be like 10,000 instead of 10000? Ideally, I would just like to do something like this:<
10,000
10000
If you like it hacky and short you can also just update the labels
def update_xlabels(ax): xlabels = [format(label, ',.0f') for label in ax.get_xticks()] ax.set_xticklabels(xlabels) update_xlabels(ax) update_xlabels(ax2)