actually remove transpose_z
This commit is contained in:
parent
9cf9edffe0
commit
df07dc9377
11
src/utils.jl
11
src/utils.jl
@ -334,17 +334,6 @@ function indices_and_unique_values(z::AbstractArray)
|
|||||||
newz, vals
|
newz, vals
|
||||||
end
|
end
|
||||||
|
|
||||||
# this is a helper function to determine whether we need to transpose a surface matrix.
|
|
||||||
# it depends on whether the backend matches rows to x (transpose_on_match == true) or vice versa
|
|
||||||
# for example: PyPlot sends rows to y, so transpose_on_match should be true
|
|
||||||
function transpose_z(plotattributes, z, transpose_on_match::Bool = true)
|
|
||||||
if plotattributes[:match_dimensions] == transpose_on_match
|
|
||||||
# z'
|
|
||||||
permutedims(z, [2,1])
|
|
||||||
else
|
|
||||||
z
|
|
||||||
end
|
|
||||||
end
|
|
||||||
handle_surface(z) = z
|
handle_surface(z) = z
|
||||||
handle_surface(z::Surface) = permutedims(z.surf)
|
handle_surface(z::Surface) = permutedims(z.surf)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user