anyone tried to plot a line and fill to the y axis using Plots?
similar like this:
anyone tried to plot a line and fill to the y axis using Plots?
similar like this:
One suggestion:
using Plots; gr()
y = 0:0.1:4
x = 1.5*(1 .+ sin.(1.5y))
xp = [-1; x; -1]
yp = [minimum(y); y; maximum(y)]
plot(xp, yp, st=:shape, fc=:blues, lw=0, xlims=(-2,4), label=false)
plot!(x,y, lc=:black, label=false)
It does exactly what i want, Thanks.