Skip to content

Commit 0976541

Browse files
committed
Update min y for charts
1 parent 39a72fe commit 0976541

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cloudai/workloads/nixl_bench/nixl_summary_report.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ def create_chart(self, op_type: str, metric: str) -> bk.figure | None:
198198
p.legend.click_policy = "hide"
199199

200200
y_max = grouped_df[numeric_cols].max().max()
201-
p.y_range = lazy.bokeh_models.Range1d(start=0.0, end=y_max * 1.1)
201+
y_min = grouped_df[numeric_cols].min().min()
202+
p.y_range = lazy.bokeh_models.Range1d(start=y_min * -1 * y_max * 0.01, end=y_max * 1.1)
202203

203204
return p

0 commit comments

Comments
 (0)