Gaston: flip y for :image series
This commit is contained in:
parent
c4681682a1
commit
bd70951afa
@ -211,7 +211,7 @@ function gaston_add_series(plt::Plot{GastonBackend}, series::Series)
|
|||||||
if z isa Surface
|
if z isa Surface
|
||||||
z = z.surf
|
z = z.surf
|
||||||
if st == :image
|
if st == :image
|
||||||
z = Float32.(Gray.(z))
|
z = reverse(Float32.(Gray.(z)), dims=1) # flip y axis
|
||||||
nr, nc = size(z)
|
nr, nc = size(z)
|
||||||
lx = length(x)
|
lx = length(x)
|
||||||
if lx == 2 && lx != nr
|
if lx == 2 && lx != nr
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user