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

BUG : patches.Wedge.set_radius set wrong attribute #3112

Merged
merged 1 commit into from Jul 6, 2014

Conversation

tacaswell
Copy link
Member

set_radius set the attribute radius which is not
used to compute the path. Change to set self.r which
is used.

@tacaswell tacaswell added this to the v1.4.0 milestone Jun 3, 2014
@efiring
Copy link
Member

efiring commented Jun 3, 2014

For Python 2.6, maybe enclosing the generator comprehension in parentheses will solve the problem. Parentheses around the (k, v) wouldn't hurt either, but don't address the immediate problem.

@tacaswell
Copy link
Member Author

Looks like we just have to use dict, the dict comprehension was apparently added in 2.7.

https://stackoverflow.com/questions/1747817/python-create-a-dictionary-with-list-comprehension

set_radius set the attribute `radius` which is not
used to compute the path.  Change to set `self.r` which
is used.
WeatherGod added a commit that referenced this pull request Jul 6, 2014
BUG : patches.Wedge.set_radius set wrong attribute
@WeatherGod WeatherGod merged commit e31863d into matplotlib:master Jul 6, 2014
@tacaswell tacaswell deleted the wedge_radius_fix branch July 6, 2014 21:53
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.

None yet

4 participants