|
From: Benjamin R. <ben...@ou...> - 2014-11-19 15:28:33
|
The underlying mechanism is a pcolormesh(). The key thing to remember when going back and forth between imshow and pcolors is that coordinates for imshow refer to the center of the pixel, while coordinates for pcolors refer to the corners, IIRC (I might have that backwards). Cheers! Ben Root On Wed, Nov 19, 2014 at 10:23 AM, Gael Varoquaux < gae...@no...> wrote: > On Wed, Nov 19, 2014 at 10:20:23AM -0500, Benjamin Root wrote: > > Notice that the colormap looks fine for the colorbar because it > > isn't using imshow() under the hood. > > As a short-term workaround (I work with Loic, and I it would help me a > lot if his problem was solved with a hack), can we leverage the mechanism > used to plot the colorbar ourselves? > > That doesn't preclude fixing the problem in master, of course. > > Cheers, > > Gaël > |