This is a heads up that Matplotlib 3.7 will deprecate the use of tunit_edges, so there will be a deprecation warning here: https://github.com/joferkington/mpldatacursor/blob/2df44a3912c2684b2d66fadc7cacbb9f60a15186/mpldatacursor/pick_info.py#L295 The solution is to simply copy the code.