Title: Clockwise pie diagram · Issue #2537 · matplotlib/matplotlib · GitHub
Open Graph Title: Clockwise pie diagram · Issue #2537 · matplotlib/matplotlib
X Title: Clockwise pie diagram · Issue #2537 · matplotlib/matplotlib
Description: Hi! Please, add this feature. My diff in axes.py looks quite simple: --- /home/sh/Downloads/matplotlib-1.3.1/lib/matplotlib/axes.py 2013-10-10 16:42:48.000000000 +0400 +++ matplotlib/axes.py 2013-10-23 16:52:11.793788510 +0400 @@ -5307,7...
Open Graph Description: Hi! Please, add this feature. My diff in axes.py looks quite simple: --- /home/sh/Downloads/matplotlib-1.3.1/lib/matplotlib/axes.py 2013-10-10 16:42:48.000000000 +0400 +++ matplotlib/axes.py 2013-1...
X Description: Hi! Please, add this feature. My diff in axes.py looks quite simple: --- /home/sh/Downloads/matplotlib-1.3.1/lib/matplotlib/axes.py 2013-10-10 16:42:48.000000000 +0400 +++ matplotlib/axes.py 2013-1...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/2537
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Clockwise pie diagram","articleBody":"Hi! Please, add this feature. My diff in axes.py looks quite simple:\n\n\u003cpre\u003e--- /home/sh/Downloads/matplotlib-1.3.1/lib/matplotlib/axes.py 2013-10-10 16:42:48.000000000 +0400\n+++ matplotlib/axes.py 2013-10-23 16:52:11.793788510 +0400\n@@ -5307,7 +5307,7 @@\n \n def pie(self, x, explode=None, labels=None, colors=None,\n autopct=None, pctdistance=0.6, shadow=False,\n- labeldistance=1.1, startangle=None, radius=None):\n+ labeldistance=1.1, startangle=None, radius=None, counterclock=True):\n r\"\"\"\n Plot a pie chart.\n \n@@ -5420,12 +5420,12 @@\n i = 0\n for frac, label, expl in cbook.safezip(x, labels, explode):\n x, y = center\n- theta2 = theta1 + frac\n+ theta2 = theta1 + frac if counterclock else theta1 - frac\n thetam = 2 * math.pi * 0.5 * (theta1 + theta2)\n x += expl * math.cos(thetam)\n y += expl * math.sin(thetam)\n \n- w = mpatches.Wedge((x, y), radius, 360. * theta1, 360. * theta2,\n+ w = mpatches.Wedge((x, y), radius, 360. * min(theta1, theta2), 360. * max(theta1, theta2),\n facecolor=colors[i % len(colors)])\n slices.append(w)\n self.add_patch(w)\n\u003c/pre\u003e\n","author":{"url":"https://github.com/fat-crocodile","@type":"Person","name":"fat-crocodile"},"datePublished":"2013-10-23T13:02:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/2537/matplotlib/issues/2537"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3b3dc84c-920e-1c37-8895-187c8135b296 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D80C:277986:1D18098:267864F:6A52D6D9 |
| html-safe-nonce | 800352b7a9223c8fb3933e2e9ac49d841faa67f006cb34aaba51ebc17f8be2a2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODBDOjI3Nzk4NjoxRDE4MDk4OjI2Nzg2NEY6NkE1MkQ2RDkiLCJ2aXNpdG9yX2lkIjoiMTYwODAzMzk2OTU3NDI3NDE3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b142fdc2ad2e0dd76481ae1a24ce466316d273927b9b966894f7e910792c396c |
| hovercard-subject-tag | issue:21451969 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/2537/issue_layout |
| twitter:image | https://opengraph.githubassets.com/de6e7b0722241da6b8c133bc0f5bdc5680f76bd61960c30bc0cef896bb38cac5/matplotlib/matplotlib/issues/2537 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/de6e7b0722241da6b8c133bc0f5bdc5680f76bd61960c30bc0cef896bb38cac5/matplotlib/matplotlib/issues/2537 |
| og:image:alt | Hi! Please, add this feature. My diff in axes.py looks quite simple: --- /home/sh/Downloads/matplotlib-1.3.1/lib/matplotlib/axes.py 2013-10-10 16:42:48.000000000 +0400 +++ matplotlib/axes.py 2013-1... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fat-crocodile |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width