Skip to content

Commit

Permalink
Add bounds check in expand_extrema (#4718)
Browse files Browse the repository at this point in the history
* Add bounds check in expand_extrema

* Stupid mistake
  • Loading branch information
ivan-boikov authored Apr 11, 2023
1 parent d667ba8 commit 0e0f117
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/axes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ function expand_extrema!(sp::Subplot, plotattributes::AKW)
letter !== :z &&
plotattributes[:seriestype] === :straightline &&
any(series[:seriestype] !== :straightline for series in series_list(sp)) &&
length(data) > 1 &&
data[1] != data[2]
)
data = [NaN]
Expand Down

0 comments on commit 0e0f117

Please sign in to comment.