@@ -18,10 +18,10 @@ def plot_commit_classification_pie():
18
18
value_counts = value_counts [:max_labels ]._append (pd .Series ([value_counts [max_labels :].sum ()], index = ['Other' ]))
19
19
20
20
# Truncate labels for better readability
21
- truncated_labels = [label [:20 ] + '...' if len (label ) > 10 else label for label in value_counts .index ]
21
+ truncated_labels = [label [:15 ] + '...' if len (label ) > 10 else label for label in value_counts .index ]
22
22
23
23
# Plot the pie chart
24
- fig , ax = plt .subplots (figsize = (7 , 5 ))
24
+ fig , ax = plt .subplots (figsize = (6 , 4 ))
25
25
ax .pie (value_counts , labels = truncated_labels , autopct = '%1.1f%%' , startangle = 90 )
26
26
# ax.set_title('Commit Classification', fontsize=12)
27
27
@@ -40,10 +40,10 @@ def plot_commit_complexity_pie():
40
40
value_counts = value_counts [:max_labels ]._append (pd .Series ([value_counts [max_labels :].sum ()], index = ['Other' ]))
41
41
42
42
# Truncate labels for better readability
43
- truncated_labels = [label [:20 ] + '...' if len (label ) > 10 else label for label in value_counts .index ]
43
+ truncated_labels = [label [:15 ] + '...' if len (label ) > 10 else label for label in value_counts .index ]
44
44
45
45
# Plot the pie chart
46
- fig , ax = plt .subplots (figsize = (7 , 5 ))
46
+ fig , ax = plt .subplots (figsize = (6 , 4 ))
47
47
ax .pie (value_counts , labels = truncated_labels , autopct = '%1.1f%%' , startangle = 90 )
48
48
# ax.set_title('Commit Complexity', fontsize=12)
49
49
@@ -78,7 +78,7 @@ def plot_implementation_component_pie():
78
78
truncated_labels = [label [:30 ] + '...' if len (label ) > 10 else label for label in value_counts .index ]
79
79
80
80
# Plot the pie chart
81
- fig , ax = plt .subplots (figsize = (7 , 5 ))
81
+ fig , ax = plt .subplots (figsize = (6 , 4 ))
82
82
ax .pie (value_counts , labels = truncated_labels , autopct = '%1.1f%%' , startangle = 90 )
83
83
84
84
# Save the figure
@@ -96,10 +96,10 @@ def plot_logic_component_pie():
96
96
value_counts = value_counts [:max_labels ]._append (pd .Series ([value_counts [max_labels :].sum ()], index = ['Other' ]))
97
97
98
98
# Truncate labels for better readability
99
- truncated_labels = [label [:20 ] + '...' if len (label ) > 10 else label for label in value_counts .index ]
99
+ truncated_labels = [label [:15 ] + '...' if len (label ) > 10 else label for label in value_counts .index ]
100
100
101
101
# Plot the pie chart
102
- fig , ax = plt .subplots (figsize = (7 , 5 ))
102
+ fig , ax = plt .subplots (figsize = (6 , 4 ))
103
103
ax .pie (value_counts , labels = truncated_labels , autopct = '%1.1f%%' , startangle = 90 )
104
104
# ax.set_title('Major Logic Component', fontsize=12)
105
105
@@ -144,10 +144,10 @@ def plot_usecases_or_submodule_pie():
144
144
value_counts = value_counts [:max_labels ]._append (pd .Series ([value_counts [max_labels :].sum ()], index = ['Other' ]))
145
145
146
146
# Truncate labels for better readability
147
- truncated_labels = [label [:20 ] + '...' if len (label ) > 10 else label for label in value_counts .index ]
147
+ truncated_labels = [label [:15 ] + '...' if len (label ) > 10 else label for label in value_counts .index ]
148
148
149
149
# Plot the pie chart
150
- fig , ax = plt .subplots (figsize = (7 , 5 ))
150
+ fig , ax = plt .subplots (figsize = (6 , 4 ))
151
151
ax .pie (value_counts , labels = truncated_labels , autopct = '%1.1f%%' , startangle = 90 )
152
152
# ax.set_title('Use Cases or Submodule Events', fontsize=12)
153
153
0 commit comments