nthakur commited on
Commit
1ee14cf
·
1 Parent(s): 3178695

Increase parameter-plot legend spacing.

Browse files

Add extra bottom margin and slightly lower the legend so parameter plot labels do not clip.

Made-with: Cursor

Files changed (1) hide show
  1. main.js +2 -2
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: 165, 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.44, x: 0.5, xanchor: 'center' },
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
  });