diff options
author | emile <hanemile@protonmail.com> | 2018-10-08 16:52:19 +0200 |
---|---|---|
committer | emile <hanemile@protonmail.com> | 2018-10-08 16:52:19 +0200 |
commit | 24c0e5c0101387b3e5f4d6cf1ebabb53eb8592e0 (patch) | |
tree | 1f6f9ada734b6e853ff7a42f37a724fb34f58127 | |
parent | 3d80c390ed8db4de50038086609aeca83a6efc8a (diff) |
Explain why the Y Axis is inverted
-rw-r--r-- | draw/draw.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/draw/draw.go b/draw/draw.go index 177c8f1..92c577b 100644 --- a/draw/draw.go +++ b/draw/draw.go @@ -8,7 +8,6 @@ import ( // initializePlot generates a new plot and returns the plot context func initializePlot() *gg.Context { - // Define the image size const image_width = 8192 const image_height = 8192 @@ -20,6 +19,7 @@ func initializePlot() *gg.Context { dc.SetRGB(0, 0, 0) dc.Clear() + // Invert the Y axis (positive values are on the top and right) dc.InvertY() // Set the coordinate midpoint to the middle of the image |