Fixes for string keyword, three-arg concat

This commit is contained in:
Nicholas Bauer 2021-08-27 01:59:56 -04:00
parent 274fdd11a4
commit d35c922529
2 changed files with 2 additions and 1 deletions

View File

@ -573,7 +573,7 @@ reset_axis_defaults_byletter!()
for letter in (:x, :y, :z), k in keys(_axis_defaults) for letter in (:x, :y, :z), k in keys(_axis_defaults)
# allow the underscore version too: xguide or x_guide # allow the underscore version too: xguide or x_guide
add_aliases(get_axis_attr(letter, k), get_axis_attr(letter, "_", k)) add_aliases(get_axis_attr(letter, k), Symbol(letter, "_", k))
end end
const _all_defaults = KW[_series_defaults, _plot_defaults, _subplot_defaults] const _all_defaults = KW[_series_defaults, _plot_defaults, _subplot_defaults]

View File

@ -80,6 +80,7 @@ end
axisattrcache = Dict{Symbol, Dict{Symbol, Symbol}}() axisattrcache = Dict{Symbol, Dict{Symbol, Symbol}}()
get_axis_attr(letter, keyword::String) = get_axis_attr(letter, Symbol(keyword))
function get_axis_attr(letter, keyword) function get_axis_attr(letter, keyword)
lt = if haskey(axisattrcache, letter) lt = if haskey(axisattrcache, letter)
axisattrcache[letter] axisattrcache[letter]