allow more types in lims! functions
This commit is contained in:
parent
882bb1b517
commit
d61bbcce56
@ -420,13 +420,13 @@ xlabel!(s::AbstractString; kw...) = plot!(; xlabel = s, kw...)
|
|||||||
ylabel!(s::AbstractString; kw...) = plot!(; ylabel = s, kw...)
|
ylabel!(s::AbstractString; kw...) = plot!(; ylabel = s, kw...)
|
||||||
|
|
||||||
"Set xlims for an existing plot"
|
"Set xlims for an existing plot"
|
||||||
xlims!(lims::Tuple{T,S}; kw...) where {T<:Real,S<:Real} = plot!(; xlims = lims, kw...)
|
xlims!(lims::Tuple{T,S}; kw...) where {T,S} = plot!(; xlims = lims, kw...)
|
||||||
|
|
||||||
"Set ylims for an existing plot"
|
"Set ylims for an existing plot"
|
||||||
ylims!(lims::Tuple{T,S}; kw...) where {T<:Real,S<:Real} = plot!(; ylims = lims, kw...)
|
ylims!(lims::Tuple{T,S}; kw...) where {T,S} = plot!(; ylims = lims, kw...)
|
||||||
|
|
||||||
"Set zlims for an existing plot"
|
"Set zlims for an existing plot"
|
||||||
zlims!(lims::Tuple{T,S}; kw...) where {T<:Real,S<:Real} = plot!(; zlims = lims, kw...)
|
zlims!(lims::Tuple{T,S}; kw...) where {T,S} = plot!(; zlims = lims, kw...)
|
||||||
|
|
||||||
xlims!(xmin::Real, xmax::Real; kw...) = plot!(; xlims = (xmin,xmax), kw...)
|
xlims!(xmin::Real, xmax::Real; kw...) = plot!(; xlims = (xmin,xmax), kw...)
|
||||||
ylims!(ymin::Real, ymax::Real; kw...) = plot!(; ylims = (ymin,ymax), kw...)
|
ylims!(ymin::Real, ymax::Real; kw...) = plot!(; ylims = (ymin,ymax), kw...)
|
||||||
@ -478,4 +478,4 @@ yaxis!(args...; kw...) = plot!(; yaxis = args
|
|||||||
xgrid!(args...; kw...) = plot!(; xgrid = args, kw...)
|
xgrid!(args...; kw...) = plot!(; xgrid = args, kw...)
|
||||||
ygrid!(args...; kw...) = plot!(; ygrid = args, kw...)
|
ygrid!(args...; kw...) = plot!(; ygrid = args, kw...)
|
||||||
|
|
||||||
@specialize
|
@specialize
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user