fix image axis limits

This commit is contained in:
Daniel Schwabeneder 2019-03-12 14:56:41 +01:00
parent 05fe220102
commit 79e978aac9

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]