ipyoverlay.utils#

Utility functions, primarily for helping convert pixel/data locations for the various viz libraries.

Functions

convert_mpl_data_to_pixel(axis, data_x, data_y)

Given a data location in a matplotlib axis, return the corresponding location in pixels from left/top.

convert_pixel_to_mpl_data(axis, ...)

Given a location in pixels, return the corresponding data location for the provided matplotlib axis.

display_output(obj)

Render the passed object via display() in a new ipywidgets Output widget and return it.

vue_template_path(filename)

Get the path to the package "data resource" that is the requested vue template file.