Plots.vline! function is not recognized in new Plots version

136 Views Asked by At

Has Plots changed something about vline(!)? Today in the newly installed machine I tried:

begin
    pyplot()
    Plots.plot([57,89])
    Plots.vline!([1.25])
end

and got the error quoted at the bottom. The new Plots is v"1.20.0" while on the v"1.19.3" machine it worked fine.

MethodError: no method matching Val{:vline}

1

There are 1 best solutions below

0
Benoit Pasquier On

Worked for me on Plots v1.21.3, with PyPlot v2.9.0:

enter image description here