Plotting with GR broken

Hi all,

I was trying this code (yesterday it was fine):

using Plots, LaTeXStrings
gr()

f(x) = (x^3 - 1) / (x-1)

plot(
    f, 0, 6,
    legend=false, 
    framestyle=:origin,
    yticks=(-3:3, ["$i" for i in 0:6])
)

but today it got error:
Error showing value of type Plots.Plot{Plots.GRBackend}:
ERROR: MethodError: no method matching deleteat!(::UnitRange{Int64}, ::Int64)
Closest candidates are:
** deleteat!(::Vector, ::Integer) at ~/julia-1.7.3/share/julia/base/array.jl:1421**
** deleteat!(::Vector, ::Any) at ~/julia-1.7.3/share/julia/base/array.jl:1468**
** deleteat!(::BitVector, ::Integer) at ~/julia-1.7.3/share/julia/base/bitarray.jl:949**

Capture d’écran_2022-07-11_13-32-04

Turns out I just need to change the plot command:
plot(f,-10,10, label=L"\frac{x^3 - 1}{x-1}", legend=:outertop)

You might need to use collect(-3:3) for your yticks.