changed colorbar outline from a Line2D object to a Polygon object

fixes issue #2296