如何去除色条上的边框(或使其变窄)?
我尝试了以下几种组合:
cb = plt.colorbar(im3,drawedges=False) #or True with next two lines
#cb.outline.set_linewidth(0)
#cb.dividers.set_linewidth(0)
cb.solids.set_rasterized(True)
cb.solids.set_edgecolor("face")
#Im saving as pdf
plt.savefig("thing.pdf",dpi=1000, bbox_inches='tight')
有些在matplotlib图像中查看时很有帮助,但保存为pdf后情况会更糟。