diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index 7f986a50..f01a6ad5 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -74,7 +74,7 @@ function py_colormap(cg::ColorGradient) cm end function py_colormap(cg::PlotUtils.CategoricalColorGradient) - r = range(0, 1, length = 256) + r = range(0, stop = 1, length = 256) pyvals = collect(zip(r, py_color(cg[r]))) cm = pycolors."LinearSegmentedColormap"."from_list"("tmp", pyvals) cm."set_bad"(color=(0,0,0,0.0), alpha=0.0) diff --git a/src/components.jl b/src/components.jl index dfe0b633..d1cf1d91 100644 --- a/src/components.jl +++ b/src/components.jl @@ -752,7 +752,7 @@ end @deprecate curve_points coords -coords(curve::BezierCurve, n::Integer = 30; range = [0,1]) = map(curve, Base.range(range..., length=n)) +coords(curve::BezierCurve, n::Integer = 30; range = [0,1]) = map(curve, Base.range(first(range), stop=last(range), length=n)) # build a BezierCurve which leaves point p vertically upwards and arrives point q vertically upwards. # may create a loop if necessary. Assumes the view is [0,1] diff --git a/src/shorthands.jl b/src/shorthands.jl index 0c9f626a..7c48e925 100644 --- a/src/shorthands.jl +++ b/src/shorthands.jl @@ -251,7 +251,7 @@ Draw contour lines of the `Surface` z. # Example ```julia-repl -julia> x = y = range(-20, 20, length = 100) +julia> x = y = range(-20, stop = 20, length = 100) julia> contour(x, y, (x, y) -> x^2 + y^2) ``` """ @@ -272,7 +272,7 @@ Draw a 3D surface plot. # Example ```julia-repl julia> using LinearAlgebra -julia> x = y = range(-3, 3, length = 100) +julia> x = y = range(-3, stop = 3, length = 100) julia> surface(x, y, (x, y) -> sinc(norm([x, y]))) ``` """