Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BUG: Fix ordering in radar chart example. #4804

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

Merged
merged 1 commit into from
Jul 29, 2015

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Jul 28, 2015

Since dict keys are not guaranteed to be sorted, the various subplots would get each case at random.

Just a small fix for consistency.

@tacaswell
Copy link
Member

I would make the whole thing a list of key/values tuples or use an OrderedDict.

Putting the order into the key like feels like it is defeating the value of using a dictionary (easy look up by key).

Since dict keys are not guaranteed to be sorted, the various subplots
would get each case at random.
@QuLogic QuLogic force-pushed the radaraxes-example-sorting branch from 4ffb9d3 to eff6561 Compare July 28, 2015 22:14
@QuLogic
Copy link
Member Author

QuLogic commented Jul 28, 2015

You know, I'm sure I had a reason for not making it a list, but I can't quite remember what it was. Definitely there's not much benefit for OrderedDict, because you need to either add each one individually, or essentially turn it into a list anyway.

Anyway, I just made it a list now.

tacaswell added a commit that referenced this pull request Jul 29, 2015
DOC: Fix ordering in radar chart example.
@tacaswell tacaswell merged commit 7539b61 into matplotlib:master Jul 29, 2015
@QuLogic QuLogic deleted the radaraxes-example-sorting branch July 29, 2015 00:44
@QuLogic QuLogic added this to the v1.5.0 milestone Apr 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants