Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d2f3e49

Browse filesBrowse files
authored
both x and y should multiply the radius
1 parent 8bbff6d commit d2f3e49
Copy full SHA for d2f3e49

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎examples/pie_and_polar_charts/bar_of_pie.py

Copy file name to clipboardExpand all lines: examples/pie_and_polar_charts/bar_of_pie.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
# draw top connecting line
6060
x = r * np.cos(np.pi / 180 * theta2) + center[0]
61-
y = np.sin(np.pi / 180 * theta2) + center[1]
61+
y = r * np.sin(np.pi / 180 * theta2) + center[1]
6262
con = ConnectionPatch(xyA=(-width / 2, bar_height), coordsA=ax2.transData,
6363
xyB=(x, y), coordsB=ax1.transData)
6464
con.set_color([0, 0, 0])
@@ -67,7 +67,7 @@
6767

6868
# draw bottom connecting line
6969
x = r * np.cos(np.pi / 180 * theta1) + center[0]
70-
y = np.sin(np.pi / 180 * theta1) + center[1]
70+
y = r * np.sin(np.pi / 180 * theta1) + center[1]
7171
con = ConnectionPatch(xyA=(-width / 2, 0), coordsA=ax2.transData,
7272
xyB=(x, y), coordsB=ax1.transData)
7373
con.set_color([0, 0, 0])

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.