Skip to content

Conversation

@jonmmease
Copy link
Contributor

@jonmmease jonmmease commented Sep 8, 2018

Adds a new BaseFigure method, to_ordered_dict. This builds and returns a representation of the figure as a nested structure of OrderedDict and list instances. The OrderedDict keys are sorted alphabetically. This makes it possible for library users to iterate over the nested structure of a figure in a deterministic order.

This method takes the place of the Figure.get_ordered method in plotly.py < 3.0.0.

See #1158 for some discussion

cc @scjody

This has less indirection, and seems to work around a strange
nose testing bug with frames.
@jonmmease jonmmease merged commit e0e185e into master Sep 8, 2018
@jonmmease jonmmease added this to the v3.2.1 milestone Sep 8, 2018
@nicolaskruchten nicolaskruchten deleted the bug_1158b branch June 19, 2020 16:14
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.

2 participants