fix typos
This commit is contained in:
parent
294ade8aad
commit
8cce78c890
@ -416,7 +416,7 @@ 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
|
||||||
|
|
||||||
function get_clims(sp::Subplot, op = process_clims(sp[:clims]))
|
function get_clims(sp::Subplot, op=process_clims(sp[:clims]))
|
||||||
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]
|
||||||
@ -426,7 +426,7 @@ function get_clims(sp::Subplot, op = process_clims(sp[:clims]))
|
|||||||
return zmin <= zmax ? (zmin, zmax) : (NaN, NaN)
|
return zmin <= zmax ? (zmin, zmax) : (NaN, NaN)
|
||||||
end
|
end
|
||||||
|
|
||||||
function get_clims(sp::Subplot, series::Series, op = process_clims(sp[:clims]))
|
function get_clims(sp::Subplot, series::Series, op=process_clims(sp[:clims]))
|
||||||
zmin, zmax = if series[:colorbar_entry]
|
zmin, zmax = if series[:colorbar_entry]
|
||||||
get_clims(sp, op)
|
get_clims(sp, op)
|
||||||
else
|
else
|
||||||
@ -436,13 +436,14 @@ function get_clims(sp::Subplot, series::Series, op = process_clims(sp[:clims]))
|
|||||||
end
|
end
|
||||||
|
|
||||||
"""
|
"""
|
||||||
get_clims(::Series, op=Plots.ignorana_extrema)
|
get_clims(::Series, op=Plots.ignoranan_extrema)
|
||||||
|
|
||||||
Finds the limits for the colorbar by taking the "z-values" for the series and passing them into `op`,
|
Finds the limits for the colorbar by taking the "z-values" for the series and passing them into `op`,
|
||||||
which must be written to return the tuple `(zmin, zmax)`. The default op is the extrema of the finite
|
which must be written to return the tuple `(zmin, zmax)`. The default op is the extrema of the finite
|
||||||
values of the input.
|
values of the input.
|
||||||
"""
|
"""
|
||||||
function get_clims(series::Series, op=ignorenan_extrema)
|
function get_clims(series::Series, op=ignorenan_extrema)
|
||||||
|
@show op
|
||||||
zmin, zmax = Inf, -Inf
|
zmin, zmax = Inf, -Inf
|
||||||
z_colored_series = (:contour, :contour3d, :heatmap, :histogram2d, :surface)
|
z_colored_series = (:contour, :contour3d, :heatmap, :histogram2d, :surface)
|
||||||
for vals in (series[:seriestype] in z_colored_series ? series[:z] : nothing, series[:line_z], series[:marker_z], series[:fill_z])
|
for vals in (series[:seriestype] in z_colored_series ? series[:z] : nothing, series[:line_z], series[:marker_z], series[:fill_z])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user