Closed as not planned
Description
This is the underlying problem raised in #1178.
It is illustrated by the test below; note that boundary anomalies are visible in all forms--agg on the screen, and pdf and svg displayed with a viewer--but in different places depending on the viewer and the size of the figure as rendered.
Note that the colorbar is rendered using pcolormesh, which has its own renderer with agg but otherwise is handled by draw_path_collection.
import numpy as np import matplotlib.pyplot as plt z = np.arange(150) z.shape = (10,15) fig, axs = plt.subplots(2,2) ax = axs[0,0] cs0 = ax.contourf(z, 20) cbar0 = fig.colorbar(cs0, ax=ax) ax = axs[0,1] cs1 = ax.contourf(z, 20, alpha=0.3) cbar1 = fig.colorbar(cs1, ax=ax) ax = axs[1,0] im2 = ax.imshow(z, interpolation='nearest') cbar2 = fig.colorbar(im2, ax=ax) ax = axs[1,1] im3 = ax.imshow(z, interpolation='nearest', alpha=0.3) cbar3 = fig.colorbar(im3, ax=ax) plt.savefig("test1.pdf") plt.savefig("test1.svg") plt.show()