ipyoverlay.utils.convert_pixel_to_mpl_data#
- ipyoverlay.utils.convert_pixel_to_mpl_data(axis, pixel_point_x, pixel_point_y)#
Given a location in pixels, return the corresponding data location for the provided matplotlib axis.
- Parameters:
axis (Axes) – The matplotlib axis to get the data location relative to.
pixel_point_x (float) – Number of pixels from the left. TODO: relative to container?
pixel_point_y (float) – Number of pixels from the top. TODO: relative to container?
- Return type:
tuple[float, float]