Skip to content

Commit

Permalink
Hover mode (#493)
Browse files Browse the repository at this point in the history
* Pass clim to opts

* Allow hover to be vline/hline

* Remove contour from this PR

* Remove extra line

Co-authored-by: ahuang11 <[email protected]>
  • Loading branch information
ahuang11 and ahuang11 authored Jan 14, 2021
1 parent 2130c70 commit a5e6111
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hvplot/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,11 @@ def __init__(self, data, x, y, kind=None, by=None, use_index=True,
if hover is None:
hover = not self.datashade
if hover and not any(t for t in tools if isinstance(t, HoverTool)
or t == 'hover'):
tools.append('hover')
or t in ['hover', 'vline', 'hline']):
if hover in ['vline', 'hline']:
tools.append(hover)
else:
tools.append('hover')
plot_opts['tools'] = tools

if self.crs and global_extent:
Expand Down

0 comments on commit a5e6111

Please sign in to comment.