Skip to content

Commit

Permalink
Codestyle fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carifio24 committed Mar 22, 2024
1 parent 1c088d5 commit c326632
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions glue_plotly/viewers/common/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,15 +230,14 @@ def activate(self):

@viewer_tool
class PlotlyHoverTool(CheckableTool):

Check warning on line 232 in glue_plotly/viewers/common/tools.py

View check run for this annotation

Codecov / codecov/patch

glue_plotly/viewers/common/tools.py#L231-L232

Added lines #L231 - L232 were not covered by tests

icon = 'glue_point'
tool_id = 'plotly:hover'
action_text = 'Hover'
tool_tip = 'Show hover info'

Check warning on line 237 in glue_plotly/viewers/common/tools.py

View check run for this annotation

Codecov / codecov/patch

glue_plotly/viewers/common/tools.py#L234-L237

Added lines #L234 - L237 were not covered by tests

def activate(self):
self.viewer.figure.update_layout(hovermode="closest")

Check warning on line 240 in glue_plotly/viewers/common/tools.py

View check run for this annotation

Codecov / codecov/patch

glue_plotly/viewers/common/tools.py#L239-L240

Added lines #L239 - L240 were not covered by tests


def deactivate(self):
self.viewer.figure.update_layout(hovermode=False)

Check warning on line 243 in glue_plotly/viewers/common/tools.py

View check run for this annotation

Codecov / codecov/patch

glue_plotly/viewers/common/tools.py#L242-L243

Added lines #L242 - L243 were not covered by tests

0 comments on commit c326632

Please sign in to comment.