From af9961c99b9e42f7211c5026c3ac9ac574b55fb9 Mon Sep 17 00:00:00 2001 From: "Jonas.Zimmermann" Date: Thu, 31 Oct 2024 15:44:57 +0100 Subject: [PATCH 1/2] Remove widening in Bar recpie --- .zenodo.json | 5 +++++ src/recipes.jl | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.zenodo.json b/.zenodo.json index eb7341d1f..1db368365 100644 --- a/.zenodo.json +++ b/.zenodo.json @@ -779,6 +779,11 @@ { "name": "Patrick Jaap", "type": "Other" + }, + { + "affiliation": "Ludwig-Maximilians-Universiaet Muenchen", + "name": "Jonas Zimmermann", + "type": "Other" } ], "upload_type": "software" diff --git a/src/recipes.jl b/src/recipes.jl index c82a0ff01..53ad4027f 100644 --- a/src/recipes.jl +++ b/src/recipes.jl @@ -461,9 +461,6 @@ end push!(yseg, yi, fi, fi, yi, yi) end - # widen limits out a bit - expand_extrema!(axis, scale_lims(ignorenan_extrema(xseg.pts)..., default_widen_factor)) - # switch back if !isvertical(plotattributes) xseg, yseg = yseg, xseg From 6caac9303765571965a11b265875fc810820cab1 Mon Sep 17 00:00:00 2001 From: "Jonas.Zimmermann" Date: Thu, 31 Oct 2024 15:52:18 +0100 Subject: [PATCH 2/2] Removed now inaccurate comment --- src/pipeline.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipeline.jl b/src/pipeline.jl index 3babfb5ab..6e6d855e1 100644 --- a/src/pipeline.jl +++ b/src/pipeline.jl @@ -363,7 +363,7 @@ function RecipesPipeline.add_series!(plt::Plot, plotattributes) elseif ms === :vline && (perm == (:x, :y) || perm == (:y, :x)) plotattributes[:markershape] = :hline end - if plotattributes[:seriestype] === :bar # bar calls expand_extrema! in its recipe... + if plotattributes[:seriestype] === :bar sp = plotattributes[:subplot] sp[get_attr_symbol(letter1, :axis)][:lims], sp[get_attr_symbol(letter2, :axis)][:lims] =