Skip to content

Commit 6a8b9ae

Browse files
committed
Use better rounding for angle in pie chart
1 parent 21e892e commit 6a8b9ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/startup_scripts/0002_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def _extract_info(self, ax: Axes) -> None:
290290
for wedge in ax.patches:
291291
pie_data = PieData(
292292
label=wedge.get_label(),
293-
angle=abs(round(wedge.theta2 - wedge.theta1, 4)),
293+
angle=abs(_dynamic_round(wedge.theta2 - wedge.theta1)),
294294
radius=wedge.r,
295295
)
296296

0 commit comments

Comments
 (0)