Skip to content

Magic underscores #1481

New issue

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

Closed
nicolaskruchten opened this issue Mar 27, 2019 · 0 comments · Fixed by #1534
Closed

Magic underscores #1481

nicolaskruchten opened this issue Mar 27, 2019 · 0 comments · Fixed by #1534

Comments

@nicolaskruchten
Copy link
Contributor

Broken off of #919 (comment) where @jonmmease said:

I think it would be great to have the 'magic underscore' behavior supported in the following places in the API:

  1. The constructors of all graph objects: go.Scatter(marker_line_color='blue'), I think this could be implemented in the new BasePlotlyType._process_kwargs method.
  2. The fig.add_* methods for adding traces: fig.add_scatter(..., marker_line_color='blue')
  3. The .update method on graph objects as you had before: scatter.update(marker_line_color='blue')
  4. When processing dicts passed to graph object constructors: go.Scatter(dict(marker_line_color='blue')), or go.Scatter(marker=dict(line_color='blue'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants