Spaces:
Sleeping
Sleeping
Increase parameter-plot legend spacing.
Browse filesAdd extra bottom margin and slightly lower the legend so parameter plot labels do not clip.
Made-with: Cursor
main.js
CHANGED
|
@@ -264,10 +264,10 @@ function renderPlots() {
|
|
| 264 |
Plotly.newPlot(metric.plotId, traces, {
|
| 265 |
title: { text: metric.title, x: 0.01, xanchor: 'left', font: { size: 16 } },
|
| 266 |
height: 460,
|
| 267 |
-
margin: { t: 46, r: 12, b:
|
| 268 |
xaxis: { title: { text: 'Model Parameters (Billions)', standoff: 26 }, type: 'log', automargin: true, showgrid: true },
|
| 269 |
yaxis: { title: metric.yLabel, range: [metric.yMin, metric.yMax], tickformat: '.2f', automargin: true, showgrid: true },
|
| 270 |
-
legend: { orientation: 'h', y: -0.
|
| 271 |
hovermode: 'closest'
|
| 272 |
}, { responsive: true, displaylogo: false });
|
| 273 |
});
|
|
|
|
| 264 |
Plotly.newPlot(metric.plotId, traces, {
|
| 265 |
title: { text: metric.title, x: 0.01, xanchor: 'left', font: { size: 16 } },
|
| 266 |
height: 460,
|
| 267 |
+
margin: { t: 46, r: 12, b: 178, l: 56 },
|
| 268 |
xaxis: { title: { text: 'Model Parameters (Billions)', standoff: 26 }, type: 'log', automargin: true, showgrid: true },
|
| 269 |
yaxis: { title: metric.yLabel, range: [metric.yMin, metric.yMax], tickformat: '.2f', automargin: true, showgrid: true },
|
| 270 |
+
legend: { orientation: 'h', y: -0.46, x: 0.5, xanchor: 'center' },
|
| 271 |
hovermode: 'closest'
|
| 272 |
}, { responsive: true, displaylogo: false });
|
| 273 |
});
|