title: Remove colorbar's borders matplotlib
body: <p>How to remove the borders on the colorbar(or make them thinner)?</p>
  
  <p>I tried pretty much every combination of the following:</p>
  
  <pre><code>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')
  </code></pre>
  
  <p>Some of these help when viewed with the matplotlib figure, but the saved pdf is even worse. </p>
  
  <p><img src="https://i.stack.imgur.com/4NOSI.png" alt="enter image description here"></p>