Skip to content

Commit 321c772

Browse files
authored
Avoid selecting all traces on selector=0
1 parent 84e17b6 commit 321c772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/python/plotly/plotly/basedatatypes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ def select_traces(self, selector=None, row=None, col=None, secondary_y=None):
11391139
Generator that iterates through all of the traces that satisfy
11401140
all of the specified selection criteria
11411141
"""
1142-
if not selector:
1142+
if not selector and not isinstance(selector, int):
11431143
selector = {}
11441144

11451145
if row is not None or col is not None or secondary_y is not None:

0 commit comments

Comments
 (0)