<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Hi,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Since upgrading to matplotlib 2.0.0 I've found that one of the plots I made before has odd behavior in ticking.  Sample code to reproduce the problem is as follows:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div>import matplotlib.pyplot as plt</div><div>import numpy as np</div><div>from matplotlib.colors import LogNorm,Normalize</div><div>from mpl_toolkits.axes_grid1 import ImageGrid</div><div><br></div><div>fig = plt.figure()</div><div>grid = ImageGrid(fig, 111, nrows_ncols = (2,2), share_all =</div><div>        True, add_all=True, label_mode = 'L', cbar_mode = 'single') </div><div><br></div><div>for g in grid:</div><div>    image = (10.**(3.*np.random.rand(100))).reshape((10,10))</div><div>    im = g.imshow(image, origin='lower', norm=LogNorm(),</div><div>            interpolation='none', extent=(0., 29.9, 0., 29.9),</div><div>            cmap='viridis', vmin=1.,vmax=1.E3)</div><div><br></div><div>grid.cbar_axes[0].colorbar(im)</div><div>grid.cbar_axes[0].set_yticks([1.,10.,100.,1.E3])</div><div>grid.cbar_axes[0].set_yticklabels([r'$1.0$', r'$10$',r'$10^{2}$', r'$10^{3}$'])</div><div><br></div><div>plt.show()</div><div><br></div><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">​The result I get is shown in the attached image.  The issue is the "2 x 10^0" in the lower right. It seems that it's associated with the colorbar, but doing things like grid.cbar_axes[0].set_xticks([]) has no effect.  If I don't include the colorbar that annotation doesn't get created.  It also seems to be associated with using norm=LogNorm().  In fact if I don't include setting the yticks and yticklabels on the colorbar, I get that "2 x10^0" label and "None" at the upper right.  So, this certainly seems like some sort of bug.  It doesn't to that using version 1.5.  I can submit a bug report if desired.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Jon​</div><br></div><div>-- <br></div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">________________________________________________________<br>Jonathan D. Slavin                 Harvard-Smithsonian CfA<br><a href="mailto:jslavin@cfa.harvard.edu" target="_blank">jslavin@cfa.harvard.edu</a>       60 Garden Street, MS 83<br>phone: (617) 496-7981       Cambridge, MA 02138-1516<br>cell: (781) 363-0035             USA<br>________________________________________________________<br><br></div></div></div></div>
</div>