Skip to content

Commit

Permalink
Fix x_max
Browse files Browse the repository at this point in the history
  • Loading branch information
ccanel committed Feb 20, 2024
1 parent 2cd400d commit dbbabdb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion unfair/scripts/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -1470,7 +1470,13 @@ def eval_multibottleneck(args, our_label, matched):
],
labels=["Original", our_label],
x_label="Ratio of throughput to maxmin fair rate (ideal = 1)",
x_max=100,
x_max=(
1.01
* max(
bneck_to_avg_maxmin_ratios_disabled[bneck],
bneck_to_avg_maxmin_ratios_enabled[bneck],
)
),
filename=f"bneck{bneck_idx}_maxmin_ratio.pdf",
colors=[COLORS_MAP["red"], COLORS_MAP["blue"]],
)
Expand Down

0 comments on commit dbbabdb

Please sign in to comment.