From 8e0fc83638fd5e5ffab6bec831661719f87d4166 Mon Sep 17 00:00:00 2001 From: ROUX EMMANUEL Date: Wed, 27 Oct 2021 13:14:25 +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); }