|
81 | 81 | function attr!(axis::Axis, args...; kw...) |
82 | 82 | # first process args |
83 | 83 | plotattributes = axis.plotattributes |
84 | | - dummy_attributes = Dict{Symbol, Any}(:plot_object=>first(axis.sps).plt) |
| 84 | + dummy_attributes = Dict{Symbol,Any}(:plot_object => first(axis.sps).plt) |
85 | 85 | for arg in args |
86 | 86 | process_axis_arg!(plotattributes, arg) |
87 | 87 | end |
@@ -331,12 +331,8 @@ get_ticks(::T, args...) where {T} = error("Unknown ticks type in get_ticks: $T") |
331 | 331 |
|
332 | 332 | _transform_ticks(ticks, axis) = ticks |
333 | 333 | function _transform_ticks(ticks::AbstractArray, axis) |
334 | | - dummy_attributes = Dict{Symbol, Any}(:plot_object=>first(axis.sps).plt) |
335 | | - return RecipesPipeline._apply_type_recipe( |
336 | | - Dict{Symbol, Any}(:plot_object=>first(axis.sps).plt), |
337 | | - ticks, |
338 | | - axis[:letter] |
339 | | - ) |
| 334 | + dummy_attributes = Dict{Symbol,Any}(:plot_object => first(axis.sps).plt) |
| 335 | + return RecipesPipeline._apply_type_recipe(dummy_attributes, ticks, axis[:letter]) |
340 | 336 | end |
341 | 337 | _transform_ticks(ticks::NTuple{2,Any}, axis) = (_transform_ticks(ticks[1], axis), ticks[2]) |
342 | 338 |
|
@@ -624,20 +620,16 @@ function round_limits(amin, amax, scale) |
624 | 620 | amin, amax |
625 | 621 | end |
626 | 622 |
|
627 | | -#process_limits(lims::Tuple{<:Union{Symbol,Real},<:Union{Symbol,Real}}, axis) = lims |
628 | 623 | process_limits(lims::Symbol, axis) = lims |
629 | 624 | process_limits(lims::Tuple, axis) = process_limits([lims...], axis) |
630 | 625 | function process_limits(lims::AVec, axis) |
631 | | - lims = RecipesPipeline._apply_type_recipe( |
632 | | - Dict{Symbol, Any}(:plot_object=>first(axis.sps).plt), |
633 | | - lims, |
634 | | - axis[:letter] |
635 | | - ) |
| 626 | + dummy_attributes = Dict{Symbol,Any}(:plot_object => first(axis.sps).plt) |
| 627 | + lims = RecipesPipeline._apply_type_recipe(dummy_attributes, lims, axis[:letter]) |
636 | 628 | if lims isa Formatted |
637 | 629 | lims = lims.data |
638 | 630 | end |
639 | 631 | length(lims) == 2 || return nothing |
640 | | - all(x -> x isa Union{Symbol, Real}, lims) || return nothing |
| 632 | + all(x -> x isa Union{Symbol,Real}, lims) || return nothing |
641 | 633 | return Tuple(lims) |
642 | 634 | end |
643 | 635 | process_limits(lims, axis) = nothing |
|
0 commit comments