Skip to content

Commit

Permalink
Merge branch 'bugfix/hoverdata_px' of github.com:predict-idlab/plotly…
Browse files Browse the repository at this point in the history
…-resampler into bugfix/hoverdata_px
  • Loading branch information
jonasvdd committed Nov 16, 2023
2 parents 6512234 + 577aa95 commit dcfb78b
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,12 @@ def __init__(

# A list of al xaxis and yaxis string names
# e.g., "xaxis", "xaxis2", "xaxis3", .... for _xaxis_list
self._xaxis_list = self._re_matches(re.compile("xaxis\d*"), self._layout.keys())
self._yaxis_list = self._re_matches(re.compile("yaxis\d*"), self._layout.keys())
self._xaxis_list = self._re_matches(
re.compile(r"xaxis\d*"), self._layout.keys()
)
self._yaxis_list = self._re_matches(
re.compile(r"yaxis\d*"), self._layout.keys()
)
# edge case: an empty `go.Figure()` does not yet contain axes keys
if not len(self._xaxis_list):
self._xaxis_list = ["xaxis"]
Expand Down

0 comments on commit dcfb78b

Please sign in to comment.