Format .jl files [skip ci] (#3861)
Co-authored-by: t-bltg <t-bltg@users.noreply.github.com>
This commit is contained in:
parent
a65cda8b7e
commit
4f0f84f400
@ -5,16 +5,13 @@ process_clims(s::Union{Symbol,Nothing,Missing}) = ignorenan_extrema
|
|||||||
# don't specialize on ::Function otherwise python functions won't work
|
# don't specialize on ::Function otherwise python functions won't work
|
||||||
process_clims(f) = f
|
process_clims(f) = f
|
||||||
|
|
||||||
get_clims(sp::Subplot)::Tuple{Float64, Float64} = sp[:crange]
|
get_clims(sp::Subplot)::Tuple{Float64,Float64} = sp[:crange]
|
||||||
get_clims(series::Series)::Tuple{Float64, Float64} = series[:crange]
|
get_clims(series::Series)::Tuple{Float64,Float64} = series[:crange]
|
||||||
|
|
||||||
get_clims(sp::Subplot, series::Series)::Tuple{Float64, Float64} =
|
get_clims(sp::Subplot, series::Series)::Tuple{Float64,Float64} =
|
||||||
series[:colorbar_entry] ?
|
series[:colorbar_entry] ? sp[:crange] : series[:crange]
|
||||||
sp[:crange] :
|
|
||||||
series[:crange]
|
|
||||||
|
|
||||||
function update_clims(sp::Subplot, op = process_clims(sp[:clims]))::Tuple{Float64, Float64}
|
|
||||||
|
|
||||||
|
function update_clims(sp::Subplot, op = process_clims(sp[:clims]))::Tuple{Float64,Float64}
|
||||||
zmin, zmax = Inf, -Inf
|
zmin, zmax = Inf, -Inf
|
||||||
for series in series_list(sp)
|
for series in series_list(sp)
|
||||||
if series[:colorbar_entry]
|
if series[:colorbar_entry]
|
||||||
@ -33,7 +30,7 @@ Finds the limits for the colorbar by taking the "z-values" for the series and pa
|
|||||||
which must return the tuple `(zmin, zmax)`. The default op is the extrema of the finite
|
which must return the tuple `(zmin, zmax)`. The default op is the extrema of the finite
|
||||||
values of the input. The value is stored as a series property, which is retrieved by `get_clims`.
|
values of the input. The value is stored as a series property, which is retrieved by `get_clims`.
|
||||||
"""
|
"""
|
||||||
function update_clims(series::Series, op = ignorenan_extrema)::Tuple{Float64, Float64}
|
function update_clims(series::Series, op = ignorenan_extrema)::Tuple{Float64,Float64}
|
||||||
zmin, zmax = Inf, -Inf
|
zmin, zmax = Inf, -Inf
|
||||||
z_colored_series = (:contour, :contour3d, :heatmap, :histogram2d, :surface, :hexbin)
|
z_colored_series = (:contour, :contour3d, :heatmap, :histogram2d, :surface, :hexbin)
|
||||||
for vals in (
|
for vals in (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user