Skip to content

Commit

Permalink
handle errorbars, add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BeastyBlacksmith committed May 22, 2024
1 parent 3dc801b commit 681dcaf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion PlotsBase/src/DataSeries.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ end

@recipe function f(s::Series)
for (k, v) in s.plotattributes
k == :subplot && continue
k in (:subplot, :yerror, :xerror, :zerror) && continue
plotattributes[k] = v
end
()
Expand Down
6 changes: 6 additions & 0 deletions PlotsBase/test/test_recipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ using OffsetArrays
end
end

@testset "Series" begin
pl = plot(1:3, yerror = 1)
@test plot(pl[1][1])[1][1][:primary] == true
@test plot(pl[1][2])[1][1][:primary] == false
@test plot(pl[1][2])[1][1][:y] == pl[1][2][:y]
end
@testset "lens!" begin
pl = plot(1:5)
lens!(pl, [1, 2], [1, 2], inset = (1, bbox(0.0, 0.0, 0.2, 0.2)), colorbar = false)
Expand Down

0 comments on commit 681dcaf

Please sign in to comment.