diff --git a/src/args.jl b/src/args.jl index 536f9691..f83d98ed 100644 --- a/src/args.jl +++ b/src/args.jl @@ -945,7 +945,7 @@ function RecipesPipeline.preprocess_attributes!(plotattributes::AKW) replaceAliases!(plotattributes, _keyAliases) # handle axis args common to all axis - args = RecipesPipeline.pop_kw!(plotattributes, :axis, ()) + args = wraptuple(RecipesPipeline.pop_kw!(plotattributes, :axis, ())) showarg = wraptuple(RecipesPipeline.pop_kw!(plotattributes, :showaxis, ())) for arg in wraptuple((args..., showarg...)) for letter in (:x, :y, :z) diff --git a/test/test_axes.jl b/test/test_axes.jl index 52904b4a..07db6102 100644 --- a/test/test_axes.jl +++ b/test/test_axes.jl @@ -1,6 +1,14 @@ using Plots, Test @testset "Showaxis" begin + for value in Plots._allShowaxisArgs + @test plot(1:5, showaxis = value)[1][:yaxis][:showaxis] isa Bool + end @test plot(1:5, showaxis = :y)[1][:yaxis][:showaxis] == true @test plot(1:5, showaxis = :y)[1][:xaxis][:showaxis] == false end + +@testset "Magic axis" begin + @test plot(1, axis=nothing)[1][:xaxis][:ticks] == [] + @test plot(1, axis=nothing)[1][:yaxis][:ticks] == [] +end # testset