Skip to content

Commit

Permalink
feat(plots): add residual_ylims keyword for plotresult
Browse files Browse the repository at this point in the history
  • Loading branch information
fjebaker committed Jun 27, 2024
1 parent 71e9964 commit 4b69a4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plots-recipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ end
end

@userplot PlotResult
@recipe function _plotting_fun(r::PlotResult; xscale = :identity)
@recipe function _plotting_fun(r::PlotResult; xscale = :identity, residual_ylims = :auto)
if length(r.args) != 2 ||
!(typeof(r.args[1]) <: AbstractDataset) ||
!(
Expand Down Expand Up @@ -196,7 +196,7 @@ end
seriestype --> :stepmid
yscale := :identity
ylabel := "Residuals"
ylims := :auto
ylims --> residual_ylims
label := false
fill --> (0, 0.3, :auto)
y_residuals = residuals(r)
Expand Down

0 comments on commit 4b69a4a

Please sign in to comment.