From f0b9c1382b85ee93fb8f7705a957289c80c2a401 Mon Sep 17 00:00:00 2001 From: ROUX EMMANUEL Date: Thu, 28 Oct 2021 15:13:51 +0200 Subject: [PATCH] fixes https://github.com/tensorflow/playground/issues/161 --- src/playground.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playground.ts b/src/playground.ts index aeac0f9c..0471379b 100644 --- a/src/playground.ts +++ b/src/playground.ts @@ -1000,7 +1000,7 @@ function drawDatasetThumbnails() { let data = dataGenerator(200, 0); data.forEach(function(d) { context.fillStyle = colorScale(d.label); - context.fillRect(w * (d.x + 6) / 12, h * (d.y + 6) / 12, 4, 4); + context.fillRect(w * (d.x + 6) / 12, h * (- d.y + 6) / 12, 4, 4); }); d3.select(canvas.parentNode).style("display", null); }