wrap_annotation_func_ax#

tangles.util.ui.wrap_annotation_func_ax(annotation_func_ax: Callable[[Axes, float], ndarray]) Callable[[float], ndarray]#

Create an AnnotationFuncImg that calls the given AnnotationFuncAx.

Parameters#

annotation_func_ax: AnnotationFuncAx

Your annotation function taking an ax object.

Returns#

AnnotationFuncImg

An annotation function that can be used in plot_annotated().