<h3 dir="auto">Bug summary</h3>
<p dir="auto">Compare the colorbars at the top of the imagegrid in <a href="https://matplotlib.org/3.4.3/gallery/axes_grid1/demo_axes_grid.html" rel="nofollow">https://matplotlib.org/3.4.3/gallery/axes_grid1/demo_axes_grid.html</a> and <a href="https://matplotlib.org/3.5.3/gallery/axes_grid1/demo_axes_grid.html" rel="nofollow">https://matplotlib.org/3.5.3/gallery/axes_grid1/demo_axes_grid.html</a> (same example, but mpl3.4 vs 3.5): the ticks have incorrectly moved from the top side of the colorbar to the bottom side (and the ticklabels are no longer suppressed by the toggle_label(False) call, but that's more or less a consequence of the first point, because toggle_label will try to hide the labels on the cbar_location="top" side).<br>
This is a regression that bisects to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="866131221" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/20054" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/20054/hovercard" href="https://github.com/matplotlib/matplotlib/pull/20054">#20054</a>.</p>
<h3 dir="auto">Code for reproduction</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Run galleries/examples/axes_grid1/demo_axes_grid.py or galleries/examples/axes_grid1/demo_axes_grid2.py"><pre class="notranslate"><span class="pl-c"># Run galleries/examples/axes_grid1/demo_axes_grid.py or galleries/examples/axes_grid1/demo_axes_grid2.py</span></pre></div>
<h3 dir="auto">Actual outcome</h3>
<p dir="auto"><a href="https://matplotlib.org/3.5.3/gallery/axes_grid1/demo_axes_grid.html" rel="nofollow">https://matplotlib.org/3.5.3/gallery/axes_grid1/demo_axes_grid.html</a></p>
<h3 dir="auto">Expected outcome</h3>
<p dir="auto"><a href="https://matplotlib.org/3.4.3/gallery/axes_grid1/demo_axes_grid.html" rel="nofollow">https://matplotlib.org/3.4.3/gallery/axes_grid1/demo_axes_grid.html</a></p>
<h3 dir="auto">Additional information</h3>
<p dir="auto">Obviously <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="866131221" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/20054" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/20054/hovercard" href="https://github.com/matplotlib/matplotlib/pull/20054">#20054</a> changed colorbar axes for the (much) better.  We can either try to fix the problematic interaction between new-style colorbars and ImageGrid, or "advantageously" interpret the fact that no one reported this bug in the ~1.5y since the release of matplotlib 3.5 as a sign that ImageGrid sees very little use and perhaps deprecate it (it has a slightly idiosyncratic API anyways, and may be better replaced by compressed layout these days).</p>
<h3 dir="auto">Operating system</h3>
<p dir="auto">macos</p>
<h3 dir="auto">Matplotlib Version</h3>
<p dir="auto">3.8.0.dev1020+gefd66d48fc</p>
<h3 dir="auto">Matplotlib Backend</h3>
<p dir="auto">mplcairo</p>
<h3 dir="auto">Python version</h3>
<p dir="auto">3.11</p>
<h3 dir="auto">Jupyter version</h3>
<p dir="auto">enosuchlib</p>
<h3 dir="auto">Installation</h3>
<p dir="auto">git checkout</p>
<p dir="auto">Part of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="325949738" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/11299" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/11299/hovercard" href="https://github.com/matplotlib/matplotlib/pull/11299">#11299</a> deprecates the property <code class="notranslate">Patches.xy</code>.</p>
<p dir="auto">I assume this was based on the existing docstring</p>
<blockquote>
<p dir="auto">Set/get the vertices of the polygon.  This property is<br>
provided for backward compatibility with matplotlib 0.91.x<br>
only.  New code should use<br>
:meth:<code class="notranslate">~matplotlib.patches.Polygon.get_xy</code> and<br>
:meth:<code class="notranslate">~matplotlib.patches.Polygon.set_xy</code> instead.</p>
</blockquote>
<p dir="auto">That docstring is 10 years old, and I'm not sure if we really want to deprecate the property. In many places I would actually favor properties over getters/setters.</p>