We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The select_traces function fetches all traces when using selector=0.
select_traces
selector=0
The bug is at https://github.com/plotly/plotly.py/blob/master/packages/python/plotly/plotly/basedatatypes.py#L1144 where the selector is overwritten by an empty dict in this case.
A minimum code snippet is:
fig = go.Figure() fig.add_trace(go.Scatter(x=[0, 1], y=[0, 1], name="trace0")) fig.add_trace(go.Scatter(x=[0, 1], y=[0, 1], name="trace1")) for trace in fig.select_traces(selector=0): print(trace["name"]) for trace in fig.select_traces(selector=1): print(trace["name"])
The output is:
trace0 trace1 trace1
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The
select_traces
function fetches all traces when usingselector=0
.The bug is at https://github.com/plotly/plotly.py/blob/master/packages/python/plotly/plotly/basedatatypes.py#L1144 where the selector is overwritten by an empty dict in this case.
A minimum code snippet is:
The output is:
The text was updated successfully, but these errors were encountered: