Gaston: flip y for :image series

This commit is contained in:
t-bltg 2021-08-03 17:19:09 +02:00 committed by GitHub
parent c4681682a1
commit bd70951afa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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