Looking to clean up some bar labels on the attached image. The code for the chart is also attached. I want to be able to have accounting format for the labels(thousands separator and 2 decimal places) (Ex. 1,000,000.00). I also would love if the labels were a little cleaner to read. Maybe rotated, moved, etc. I am extremely new to Python so any changes you suggest may have to be accompanied with some code.
Also, what would be the easiest way to attach the chart to an e-mail body?
Thanks everyone in advance! Image of Chart HERE
plt.style.use('seaborn-darkgrid')
fig, ax = plt.subplots()
sqldata.plot(x='AccountName',y=['t0','t30'],kind='bar', ax=ax)
ax.set_title(f"Financials Team Cash Sheet {todaydate}")
ax.set_ylabel('Cash')
ax.set_xlabel('Account')
ax.set_title(f"Financials Team Cash Sheet {todaydate}")
x = np.arange(len(sqldata))
y = np.arange(100000)
width = 0.35
ax.set_ylim(0,30000000)
ax.legend()
plt.ticklabel_format(style='plain', axis='y')
ax.yaxis.set_major_formatter(mpl.ticker.StrMethodFormatter('${x:,.0f}'))
#
rects1 = ax.bar(x - width/2, sqldata.t0, width, label='T+0')
rects2 = ax.bar(x + width/2, sqldata.t30, width, label='T+30')
ax.bar_label(rects1, padding=3, fmt='%d',label_type='center')
ax.bar_label(rects2, padding=3, fmt='%d')
plt.tight_layout()
plt.show()