From 434e189f1e8c307c41b60b6a7ca2e013d1d426f1 Mon Sep 17 00:00:00 2001 From: t-bltg Date: Mon, 5 Jul 2021 22:12:09 +0200 Subject: [PATCH 1/3] fix JuliaPlots/Plots.jl/issues/3451 --- src/pipeline.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipeline.jl b/src/pipeline.jl index 94fce068..61f52cd1 100644 --- a/src/pipeline.jl +++ b/src/pipeline.jl @@ -141,7 +141,7 @@ function _add_smooth_kw(kw_list::Vector{KW}, kw::AKW) end -RecipesPipeline.get_axis_limits(plt::Plot, letter) = axis_limits(plt[1], letter) +RecipesPipeline.get_axis_limits(plt::Plot, letter) = axis_limits(plt[1], letter, false) ## Plot recipes From 9f4e32aa4db2d534534634cddb3995e8626c0454 Mon Sep 17 00:00:00 2001 From: t-bltg Date: Mon, 5 Jul 2021 22:29:38 +0200 Subject: [PATCH 2/3] add regression test --- test/test_pipeline.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/test_pipeline.jl b/test/test_pipeline.jl index 2c81dfeb..027ff040 100644 --- a/test/test_pipeline.jl +++ b/test/test_pipeline.jl @@ -8,3 +8,11 @@ using Plots, Test plot!(pl, tex_output_standalone = true) @test pl[:tex_output_standalone] == true end + +@testset "get_axis_limits" begin + x = [.1, 5] + p1 = plot(x, [5, .1], yscale=:log10) + p2 = plot!(identity) + @test all(RecipesPipeline.get_axis_limits(p1, :x) .== x) + @test all(RecipesPipeline.get_axis_limits(p2, :x) .== x) +end From 909ad3314a98977bf26f7f210063bf7f55931803 Mon Sep 17 00:00:00 2001 From: t-bltg Date: Mon, 5 Jul 2021 22:59:22 +0200 Subject: [PATCH 3/3] fix test --- test/test_pipeline.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_pipeline.jl b/test/test_pipeline.jl index 027ff040..cf6c38e2 100644 --- a/test/test_pipeline.jl +++ b/test/test_pipeline.jl @@ -1,4 +1,5 @@ using Plots, Test +using RecipesPipeline @testset "plot" begin pl = plot(1:5)