Spaces:
Running
Running
Commit
·
31677d7
1
Parent(s):
5f9c44d
updated frontier line
Browse files
utils.py
CHANGED
@@ -71,13 +71,9 @@ def create_scatter_plot(df, x: str, y: str, x_label: str = None, y_label: str =
|
|
71 |
y=[point[1] for point in pareto_points],
|
72 |
mode='lines',
|
73 |
name='Pareto Frontier',
|
74 |
-
line=dict(color='black', width=
|
75 |
))
|
76 |
|
77 |
-
# Calculate the maximum x and y values for setting axis ranges
|
78 |
-
max_x = max(df[x].max(), max(point[0] for point in pareto_points))
|
79 |
-
max_y = max(df[y].max(), max(point[1] for point in pareto_points))
|
80 |
-
|
81 |
fig.update_yaxes(rangemode="tozero")
|
82 |
fig.update_xaxes(rangemode="tozero")
|
83 |
|
|
|
71 |
y=[point[1] for point in pareto_points],
|
72 |
mode='lines',
|
73 |
name='Pareto Frontier',
|
74 |
+
line=dict(color='black', width=1, dash='dash')
|
75 |
))
|
76 |
|
|
|
|
|
|
|
|
|
77 |
fig.update_yaxes(rangemode="tozero")
|
78 |
fig.update_xaxes(rangemode="tozero")
|
79 |
|