8000 both x and y should multiply the radius · matplotlib/matplotlib@d2f3e49 · GitHub
[go: up one dir, main page]

Skip to content

Commit d2f3e49

Browse files
authored
both x and y should multiply the radius
1 parent 8bbff6d commit d2f3e49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/pie_and_polar_charts/bar_of_pie.py

Lines 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