Skip to content

Commit 478df75

Browse files
authored
Update venn_bar_pas_net_heat_cir.py
1 parent 0b34a4a commit 478df75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

venn_bar_pas_net_heat_cir.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def barras(df = DataFrame([]), column = 1, dim = 111, title = 'Title', row_num =
101101
def pastel(df = DataFrame([]), column = 0, dim = 111, title = 'Title',
102102
row_num = 7, angle = 0, legend = 'Box', # lagend options = 'Box' y 'Labels'
103103
size_text = 10, size_title = 20, color = pie_colors['Set2'],
104-
explode = 0, open_center = 0.4):
104+
explode = 0, open_center = 0.4, box_col = 1):
105105
if len(df) < 1:
106106
print('Data frame sin datos')
107107
else:
@@ -132,7 +132,7 @@ def pastel(df = DataFrame([]), column = 0, dim = 111, title = 'Title',
132132
colors = color,
133133
explode = explode0, textprops=dict(size = size_text))
134134
plt.legend(opcion_leyenda[legend][0], bbox_to_anchor= opcion_leyenda[legend][3], loc=2,
135-
borderaxespad=None, fontsize = opcion_leyenda[legend][4])
135+
borderaxespad=None, fontsize = opcion_leyenda[legend][4], ncol= box_col, frameon=False)
136136
centre_circle = plt.Circle((0,0),open_center,fc='white')
137137
plt.title(title, y=0.95 + (explo / 2),size=size_title,fontweight='bold')
138138
plt.gca().add_artist(centre_circle)

0 commit comments

Comments
 (0)