-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add option to rotate labels in a pie chart (#2304) #8217
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3208,7 +3208,7 @@ def phase_spectrum(x, Fs=None, Fc=None, window=None, pad_to=None, sides=None, | |
def pie(x, explode=None, labels=None, colors=None, autopct=None, | ||
pctdistance=0.6, shadow=False, labeldistance=1.1, startangle=None, | ||
radius=None, counterclock=True, wedgeprops=None, textprops=None, | ||
center=(0, 0), frame=False, hold=None, data=None): | ||
center=(0, 0), frame=False, rotatelabels=False, hold=None, data=None): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't that file autogenerated? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, the changes on this file are generated by There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As long as you haven't manually updated this file, it's all good :) |
||
ax = gca() | ||
# Deprecated: allow callers to override the hold state | ||
# by passing hold=True|False | ||
|
@@ -3225,7 +3225,7 @@ def pie(x, explode=None, labels=None, colors=None, autopct=None, | |
labeldistance=labeldistance, startangle=startangle, | ||
radius=radius, counterclock=counterclock, | ||
wedgeprops=wedgeprops, textprops=textprops, center=center, | ||
frame=frame, data=data) | ||
frame=frame, rotatelabels=rotatelabels, data=data) | ||
finally: | ||
ax._hold = washold | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mind converting this docstring into numpydoc? It will make it much more readable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would be happy to, do you want me to create a separate issue for that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, let's do this. I am going to merge this PR straight away, as everything is fine!