I'm trying to print scientific labels above each bar plot, similar to my y-axis that already is set to a scientific notation. I've tried using "{:.2E}".format but that doesnt work as i'm trying to convert an entire array (count). Any ideas?
xx= np.arange(0,10) , labels = [0.2,0.1,0.0,1.0,2.0,3.0,4.0,5.0,6.0,7.0]
plt.figure(figsize=(7, 4.5)) , plt.bar(xx, count), plt.xlabel('base.distance') , plt.xticks(xx, labels)
addlabels(xx,count.astype('int32'))
plt.ticklabel_format(axis='y', style='sci', scilimits=(0,0))
plt.ylabel('Count'), plt.title(file), plt.show()