<div dir="ltr">Yes, that doesn't work.  It just autoscales to a tiny portion of the data.<div><br></div><div>In my example, I generate the xy coordinates for the centers of hexagons that tile a square area.  The code adds the hexagons using add_artist.  Also, the centers of the hexagons are annotated.  Neither of these operations causes the axes to scale correctly.  If I add a step to plot the centers of the hexagons, using e.g., scatter, then the axes are scaled correctly.</div><div>For now, I'm just adding the scatter plot with alpha=0 to get the scaling correct.</div><div>But I still don't know a less klugey way to do it.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 22, 2019 at 12:43 AM Juan Nunez-Iglesias <<a href="mailto:jni.soma@gmail.com">jni.soma@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><div><blockquote type="cite"><div>What's an </div><div><div>easy way to get the axes to scale correctly in this example?<br></div></div></blockquote><div><br></div></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div>Have you tried `ax.autoscale_view`?</div><div><br></div><div><a href="https://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.autoscale_view.html" target="_blank">https://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.autoscale_view.html</a></div></div></blockquote></div>