Fix loss chart caption baseline
This commit is contained in:
parent
8de96a86d2
commit
2d712baf31
2 changed files with 4 additions and 2 deletions
|
|
@ -547,7 +547,8 @@ function renderLossChart(): void {
|
|||
if (losses.length === 0) {
|
||||
context.fillStyle = "rgba(255,255,255,0.28)";
|
||||
context.font = "14px sans-serif";
|
||||
context.fillText("Loss curve wakes up once the solver starts moving.", 18, 28);
|
||||
context.textBaseline = "top";
|
||||
context.fillText("Loss curve wakes up once the solver starts moving.", 18, 16);
|
||||
return;
|
||||
}
|
||||
const minLoss = Math.min(...losses);
|
||||
|
|
|
|||
|
|
@ -444,7 +444,8 @@ function renderLossChart() {
|
|||
if (losses.length === 0) {
|
||||
context.fillStyle = "rgba(255,255,255,0.28)";
|
||||
context.font = "14px sans-serif";
|
||||
context.fillText("Loss curve wakes up once the solver starts moving.", 18, 28);
|
||||
context.textBaseline = "top";
|
||||
context.fillText("Loss curve wakes up once the solver starts moving.", 18, 16);
|
||||
return;
|
||||
}
|
||||
const minLoss = Math.min(...losses);
|
||||
|
|
|
|||
Loading…
Reference in a new issue