-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add kwarg highlight_selected (Callable[[dict[str, Any]], dict[str, Any]], optional) to hook_up_fig_with_struct_viewer() Function that takes the clicked or last-hovered point and returns a dict of kwargs to be passed to go.Figure.add_annotation() to highlight said point. Set to False to disable highlighting. Defaults to lambda point: dict( x=point["x"], y=point["y"], xref="x", yref="y", text=f"<b>{point['hovertext']}</b>" ) * ruff enable flynt rules
- Loading branch information
Showing
2 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters