From 61a348b3fc49dd60c01ffb6e3f2a218b1327cb20 Mon Sep 17 00:00:00 2001 From: emile Date: Mon, 8 Oct 2018 16:44:42 +0200 Subject: Invert the Y axis (positive values are now on top of the x axis) --- draw/draw.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/draw/draw.go b/draw/draw.go index 9ee1bd7..cfde776 100644 --- a/draw/draw.go +++ b/draw/draw.go @@ -19,6 +19,8 @@ func initializePlot() *gg.Context { dc.SetRGB(0, 0, 0) dc.Clear() + dc.InvertY() + // Set the coordinate midpoint to the middle of the image dc.Translate(image_width/2, image_height/2) -- cgit 1.4.1