The Axes instance supports callbacks through a callbacks
attribute which is a CallbackRegistry
instance. The events you can connect to are 'xlim_changed' and
'ylim_changed' and the callback will be called with func(ax)
where ax is the Axes instance.