Skip to content

Commit 6f0a831

Browse files
committed
add fill_between(::InterpolatedCls), misc
1 parent d241fa8 commit 6f0a831

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/plotting.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
using .PyPlot
33
using .PyPlot.PyCall
4-
import .PyPlot: loglog, plot, semilogx, semilogy, figure
4+
import .PyPlot: loglog, plot, semilogx, semilogy, figure, fill_between
55

66

77
### plotting Cℓs
@@ -17,6 +17,14 @@ for plot in (:plot, :loglog, :semilogx, :semilogy)
1717
end
1818
end
1919

20+
function fill_between(ic::InterpolatedCℓs{<:Measurement}, args...; kwargs...)
21+
fill_between(
22+
ic.ℓ,
23+
((@. Measurements.value(ic.Cℓ) - x * Measurements.uncertainty(ic.Cℓ)) for x in (-1,1))...,
24+
args...; kwargs...
25+
)
26+
end
27+
2028

2129
### plotting FlatFields
2230

0 commit comments

Comments
 (0)