Skip to content
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

Add "overwrite" kwarg to all update* figure methods. #1726

Merged
merged 1 commit into from
Oct 14, 2019

Conversation

jonmmease
Copy link
Contributor

Closes #1717

This PR adds a new overwrite kwarg to all of the figure update* methods. The default behavior, with overwrite=False, is to apply updates recursively to the existing nested property structure. With overwrite=True, the prior value of existing properties is overwritten with the provided value.

When True, update operations will overwrite the prior version of all
properties. When False (the default), updates are applied recursively
and prior properties are retained if not updated.
@jonmmease jonmmease added this to the v4.2.0 milestone Aug 31, 2019
@nicolaskruchten
Copy link
Contributor

@emmanuelle are you able to do a review pass on this one please?

@emmanuelle
Copy link
Contributor

@nicolaskruchten @jonmmease sorry I forgot about this one, I'll review it soon!

@emmanuelle
Copy link
Contributor

Looks good to me, thanks 💃 We should also update the tutorial https://plot.ly/python/creating-and-updating-figures/ with an example of overwrite=True when the release comes out.

@jonmmease jonmmease merged commit 573f953 into master Oct 14, 2019
@nicolaskruchten nicolaskruchten deleted the overwrite_update branch June 19, 2020 16:15
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 this pull request may close these issues.

overwrite argument for update methods
3 participants