handle axis=nothing; closes #428

This commit is contained in:
Thomas Breloff 2016-08-09 15:42:09 -04:00
parent 599f91860a
commit 54cd96e5e0

View File

@ -626,6 +626,21 @@ end
function preprocessArgs!(d::KW)
replaceAliases!(d, _keyAliases)
# clear all axis stuff
if haskey(d, :axis) && d[:axis] in (:none, nothing, false)
d[:ticks] = nothing
d[:foreground_color_border] = RGBA(0,0,0,0)
d[:grid] = false
delete!(d, :axis)
end
# for letter in (:x, :y, :z)
# asym = Symbol(letter, :axis)
# if haskey(d, asym) || d[asym] in (:none, nothing, false)
# d[Symbol(letter, :ticks)] = nothing
# d[Symbol(letter, :foreground_color_border)] = RGBA(0,0,0,0)
# end
# end
# handle axis args
for letter in (:x, :y, :z)
asym = Symbol(letter, :axis)