Powerful convenience for Julia visualizations and data analysis http://juliaplots.github.io/
github-actions[bot] on new_version
CompatHelper: bump compat for "… (compare)
hspan!() has an odd behaviour in Plots v1.6.6, instead of plotting from -Inf to +Inf over x it plots from 1 to 2. Minimum example
julia> plot(0:9)
julia> hspan!([2,3])
I am surprised to see this definition, that seems plain wrong
@recipe function f(::Type{Val{:hspan}}, x, y, z)
n = div(length(y), 2)
newx = repeat([1, 2, 2, 1, NaN], outer = n)
newy = vcat([[y[2i - 1], y[2i - 1], y[2i], y[2i], NaN] for i = 1:n]...)
linewidth --> 0
x := newx
y := newy
seriestype := :shape
()
end
I think that using Inf similarly to vspan would fix this issue
@recipe function f(::Type{Val{:vspan}}, x, y, z)
n = div(length(y), 2)
newx = vcat([[y[2i - 1], y[2i - 1], y[2i], y[2i], NaN] for i = 1:n]...)
newy = repeat([-Inf, Inf, Inf, -Inf, NaN], outer = n)
linewidth --> 0
x := newx
y := newy
seriestype := :shape
()
end
aspect_ratio=:equal
doesn't seem to work
isovalue
(= threshold)
p1 = make_first_plot()
p2 = make_second_plot()
plot(p1[1][1][:x], p1[1][1][:y], lab="model")
plot!(sp=1, p2) # replace p1
plot!(sp=1, p2) # also replace p1
x = -10:0.01:10
y = x
plot(x, y)
plot(x, y, yaxis = log10.(y .+ 100))
yaxis = log10.(y .+ 100)
only yields values from 1.95 to 2.04 so its a straight line