Skip to content

Commit

Permalink
add line for base
Browse files Browse the repository at this point in the history
  • Loading branch information
tmori committed Sep 26, 2024
1 parent 38834d3 commit 5aa21a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/measure/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@
if args.type == 'phase' and not args.stddev_only:
x_value = asset_time
y_value = core_time
if i == 0:
plt.plot(x_value, x_value, label=f'base', marker='o')
plt.plot(x_value, y_value, label=f'asset-{i}', marker='o')
if i == args.multi_num - 1:
print(f'{args.start} {end_time}')
plt.plot([args.start, end_time], [args.start, end_time], label='base', color='red', linestyle='--', linewidth=2)
plt.xlabel('Asset Time') # x軸のラベル
plt.ylabel('Core Time') # y軸のラベル
elif args.type == 'time':
Expand Down

0 comments on commit 5aa21a2

Please sign in to comment.