Skip to content

Commit 04dbb4d

Browse files
committed
bar width change, rename function
1 parent 4e1b68c commit 04dbb4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

icst2024/python/plot_time_analysis.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ def truncate_address(address):
4141
return address[:12]
4242

4343

44-
def create_comparison_graph(
44+
def create_comparison_bar_chart(
4545
addresses, ot_durations, mt_durations, output_file="fig.png"
4646
):
4747
ot_seconds = [convert_to_seconds(ot) for ot in ot_durations]
4848
mt_seconds = [convert_to_seconds(mt) for mt in mt_durations]
4949

5050
plt.figure(figsize=(22, 12))
5151

52-
bar_width = 0.8
52+
bar_width = 0.58
5353
plt.bar(
5454
[truncate_address(addr) for addr in addresses],
5555
ot_seconds,
@@ -88,7 +88,7 @@ def main():
8888
ot_failed_tests,
8989
mt_failed_tests,
9090
) = extract_data_from_csv(file_path)
91-
create_comparison_graph(
91+
create_comparison_bar_chart(
9292
addresses, ot_durations, mt_durations, output_file=plot_path
9393
)
9494
average_difference = calculate_average_difference(ot_failed_tests, mt_failed_tests)

0 commit comments

Comments
 (0)