@@ -101,7 +101,7 @@ def barras(df = DataFrame([]), column = 1, dim = 111, title = 'Title', row_num =
101
101
def pastel (df = DataFrame ([]), column = 0 , dim = 111 , title = 'Title' ,
102
102
row_num = 7 , angle = 0 , legend = 'Box' , # lagend options = 'Box' y 'Labels'
103
103
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 ):
105
105
if len (df ) < 1 :
106
106
print ('Data frame sin datos' )
107
107
else :
@@ -132,7 +132,7 @@ def pastel(df = DataFrame([]), column = 0, dim = 111, title = 'Title',
132
132
colors = color ,
133
133
explode = explode0 , textprops = dict (size = size_text ))
134
134
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 )
136
136
centre_circle = plt .Circle ((0 ,0 ),open_center ,fc = 'white' )
137
137
plt .title (title , y = 0.95 + (explo / 2 ),size = size_title ,fontweight = 'bold' )
138
138
plt .gca ().add_artist (centre_circle )
0 commit comments