Commit 31fd8ad1 authored by Leo Pound Singer's avatar Leo Pound Singer
Browse files

Fix subtle white bands in colorbars

Original: 6a82d82fe0c41fa24c6d305dcfa0768cff200e66
parent f32f2a28
......@@ -562,6 +562,11 @@ def colorbar(vmax):
cb = plt.colorbar(orientation='horizontal', ticks=ticks, format=formatter,
shrink=0.4)
# Draw edges in colorbar bands to correct thin white bands that
# appear in buggy PDF viewers. See:
# https://github.com/matplotlib/matplotlib/pull/1301
cb.solids.set_edgecolor("face")
# Adjust appearance of colorbar tick labels
for tick, ticklabel in zip(cb.ax.get_xticks(), cb.ax.get_xticklabels()):
ticklabel.set_verticalalignment('baseline')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment