An error is thrown when hovering over the colorbar.
Last few lines of the error:
File "/.../mplcursors/_pick_info.py", line 337, in _
sel = _compute_projection_pick(
File "/.../mplcursors/_pick_info.py", line 246, in _compute_projection_pick
vertices[codes == tpath.CLOSEPOLY] = vertices[0]
IndexError: index 0 is out of bounds for axis 0 with size 0
IMO it would be fine to swallow this error and just not show a tooltip (maybe logging.info() the error message?), but I'm sure there's a more elegant way to handle it.
Howdy.
With a heatmap + colorbar, like:
Which looks like:
An error is thrown when hovering over the colorbar.
Last few lines of the error:
IMO it would be fine to swallow this error and just not show a tooltip (maybe
logging.info()
the error message?), but I'm sure there's a more elegant way to handle it.