diff options
author | emile <hanemile@protonmail.com> | 2018-10-08 16:44:42 +0200 |
---|---|---|
committer | emile <hanemile@protonmail.com> | 2018-10-08 16:44:42 +0200 |
commit | 61a348b3fc49dd60c01ffb6e3f2a218b1327cb20 (patch) | |
tree | ff61a4ac0c5973adeb7acc6682bf24a1f48fb4ea | |
parent | c22f1d74b7d555c5eaa1dfaf6c357e7853ca7946 (diff) |
Invert the Y axis (positive values are now on top of the x axis)
-rw-r--r-- | draw/draw.go | 2 |
1 files changed, 2 insertions, 0 deletions
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) |