Add 2D marker_z with Functions

This commit is contained in:
SebastianM-C 2018-05-07 22:24:07 +03:00 committed by Michael Krabbe Borregaard
parent 30f3e3cf56
commit 45dc9e5c0d

View File

@ -117,7 +117,7 @@ function _preprocess_userrecipe(kw::KW)
# map marker_z if it's a Function # map marker_z if it's a Function
if isa(get(kw, :marker_z, nothing), Function) if isa(get(kw, :marker_z, nothing), Function)
# TODO: should this take y and/or z as arguments? # TODO: should this take y and/or z as arguments?
kw[:marker_z] = map(kw[:marker_z], kw[:x], kw[:y], kw[:z]) kw[:marker_z] = isa(kw[:z], Void) ? map(kw[:marker_z], kw[:x], kw[:y]) : map(kw[:marker_z], kw[:x], kw[:y], kw[:z])
end end
# map line_z if it's a Function # map line_z if it's a Function