From bd70951afa7d9ce4da2c5128ae00e94fe1bef429 Mon Sep 17 00:00:00 2001 From: t-bltg <13423344+t-bltg@users.noreply.github.com> Date: Tue, 3 Aug 2021 17:19:09 +0200 Subject: [PATCH] Gaston: flip y for :image series --- src/backends/gaston.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/gaston.jl b/src/backends/gaston.jl index f2246a43..9c2bc2a2 100644 --- a/src/backends/gaston.jl +++ b/src/backends/gaston.jl @@ -211,7 +211,7 @@ function gaston_add_series(plt::Plot{GastonBackend}, series::Series) if z isa Surface z = z.surf if st == :image - z = Float32.(Gray.(z)) + z = reverse(Float32.(Gray.(z)), dims=1) # flip y axis nr, nc = size(z) lx = length(x) if lx == 2 && lx != nr