This commit is contained in:
Giorgio Calderone 2020-03-29 18:57:37 +02:00
parent 08c2a999a5
commit d75cb1c46e

View File

@ -186,8 +186,8 @@ function arrays2datablock(args...)
indices = Tuple(CIndex)
(i > 1) && (indices[end-1] == 1) && (push!(accum, "")) # blank line
if length(args) == 1
# Add independent indices (useful when plotting "with image")
v = join(string.(getindex.(Ref(Tuple(indices)), 1:ndims(args[1]))), " ")
# Add independent indices (starting from zero, useful when plotting "with image")
v = join(string.(getindex.(Ref(Tuple(indices)), 1:ndims(args[1])) .- 1), " ")
else
# Do not add independent indices since there is no way to distinguish a "z" array from additional arrays
v = ""