We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8bbff6d + d2f3e49 commit d541b6dCopy full SHA for d541b6d
examples/pie_and_polar_charts/bar_of_pie.py
@@ -58,7 +58,7 @@
58
59
# draw top connecting line
60
x = r * np.cos(np.pi / 180 * theta2) + center[0]
61
-y = np.sin(np.pi / 180 * theta2) + center[1]
+y = r * np.sin(np.pi / 180 * theta2) + center[1]
62
con = ConnectionPatch(xyA=(-width / 2, bar_height), coordsA=ax2.transData,
63
xyB=(x, y), coordsB=ax1.transData)
64
con.set_color([0, 0, 0])
@@ -67,7 +67,7 @@
67
68
# draw bottom connecting line
69
x = r * np.cos(np.pi / 180 * theta1) + center[0]
70
-y = np.sin(np.pi / 180 * theta1) + center[1]
+y = r * np.sin(np.pi / 180 * theta1) + center[1]
71
con = ConnectionPatch(xyA=(-width / 2, 0), coordsA=ax2.transData,
72
73
0 commit comments