Merge pull request #1951 from daschw/gr-image

fix image axis limits
This commit is contained in:
Daniel Schwabeneder 2019-03-13 09:37:02 +01:00 committed by GitHub
commit 33a37f9494
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1191,7 +1191,7 @@ function gr_display(sp::Subplot{GRBackend}, w, h, viewport_canvas)
elseif st == :image elseif st == :image
z = transpose_z(series, series[:z].surf, true)' z = transpose_z(series, series[:z].surf, true)'
w, h = length(x), length(y) w, h = size(z)
xinds = sort(1:w, rev = xaxis[:flip]) xinds = sort(1:w, rev = xaxis[:flip])
yinds = sort(1:h, rev = yaxis[:flip]) yinds = sort(1:h, rev = yaxis[:flip])
z = z[xinds, yinds] z = z[xinds, yinds]