Skip to content

Commit d3d5b10

Browse files
committed
Normalizing data for pie plots by default
1 parent 3a058af commit d3d5b10

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

maboss/figures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def plot_piechart(plot_table, ax, palette, embed_labels=False, autopct=4, \
8484
plot_line = plot_line.rename({"Others": "Others (%1.2f%%)" % (others*100)})
8585

8686
ax.pie(plot_line, labels=plotting_labels, radius=1.2,
87-
startangle=90, colors=color_list, normalize=False, **opts)
87+
startangle=90, colors=color_list, normalize=True, **opts)
8888
ax.axis('equal')
8989
if legend:
9090
if nil_label is not None:
@@ -110,7 +110,7 @@ def plot_fix_point(table, ax, palette):
110110
prob_list.append(prob_ns)
111111
color_list.append(persistent_color(palette, "no_fp"))
112112
labels.append('no_fp')
113-
ax.pie(prob_list, labels=labels, colors=color_list, normalize=False)
113+
ax.pie(prob_list, labels=labels, colors=color_list, normalize=True)
114114

115115

116116

0 commit comments

Comments
 (0)