在使用matplotlib进行绘图时,由于使用的数据过大,在colorbar上会自动转换为科学计数法的形式
colorbar的107位置与我后续数据单位的位置重合,请问有方法关闭colorbar的科学计数法或者移动107的位置吗?
可以尝试用colorbar.ax.set_xticklabels([str(t) for t in ticks]) 设置一下看看,具体参考: https://matplotlib.org/stable/gallery/ticks_and_spines/colorbar_tick_labelling_demo.html, 以及 https://matplotlib.org/stable/gallery/axes_grid1/demo_colorbar_with_inset_locator.html