changing color
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def get_plots(task):
|
|
18 |
all_df = all_df.sort_values(by=['Total GPU Energy (Wh)'])
|
19 |
all_df['parameters'] = all_df['parameters'].apply(format_params)
|
20 |
all_df['energy_star'] = pd.cut(all_df['Total GPU Energy (Wh)'], 3, labels=["βββ", "ββ", "β"])
|
21 |
-
fig = px.scatter(all_df, x="model", y='Total GPU Energy (Wh)', custom_data=['parameters'], height= 500, width= 800, color = 'energy_star', color_discrete_map={"β": 'red', "ββ": "
|
22 |
fig.update_traces(
|
23 |
hovertemplate="<br>".join([
|
24 |
"Total Energy: %{y}",
|
@@ -39,7 +39,7 @@ def get_all_plots():
|
|
39 |
all_df = pd.concat([all_df, tasks_df])
|
40 |
all_df = all_df.sort_values(by=['Total GPU Energy (Wh)'])
|
41 |
all_df['parameters'] = all_df['parameters'].apply(format_params)
|
42 |
-
fig = px.scatter(all_df, x="model", y='Total GPU Energy (Wh)', custom_data=['parameters'], height= 500, width= 800, color = 'energy_star', color_discrete_map={"β": 'red', "ββ": "
|
43 |
fig.update_traces(
|
44 |
hovertemplate="<br>".join([
|
45 |
"Total Energy: %{y}",
|
|
|
18 |
all_df = all_df.sort_values(by=['Total GPU Energy (Wh)'])
|
19 |
all_df['parameters'] = all_df['parameters'].apply(format_params)
|
20 |
all_df['energy_star'] = pd.cut(all_df['Total GPU Energy (Wh)'], 3, labels=["βββ", "ββ", "β"])
|
21 |
+
fig = px.scatter(all_df, x="model", y='Total GPU Energy (Wh)', custom_data=['parameters'], height= 500, width= 800, color = 'energy_star', color_discrete_map={"β": 'red', "ββ": "orange", "βββ": "green"})
|
22 |
fig.update_traces(
|
23 |
hovertemplate="<br>".join([
|
24 |
"Total Energy: %{y}",
|
|
|
39 |
all_df = pd.concat([all_df, tasks_df])
|
40 |
all_df = all_df.sort_values(by=['Total GPU Energy (Wh)'])
|
41 |
all_df['parameters'] = all_df['parameters'].apply(format_params)
|
42 |
+
fig = px.scatter(all_df, x="model", y='Total GPU Energy (Wh)', custom_data=['parameters'], height= 500, width= 800, color = 'energy_star', color_discrete_map={"β": 'red', "ββ": "orange", "βββ": "green"})
|
43 |
fig.update_traces(
|
44 |
hovertemplate="<br>".join([
|
45 |
"Total Energy: %{y}",
|