Only base clims on z values when series is colored by z.
This commit is contained in:
parent
4bb43887a4
commit
a637f43edd
@ -553,8 +553,9 @@ zlims(sp_idx::Int = 1) = zlims(current(), sp_idx)
|
|||||||
|
|
||||||
function get_clims(sp::Subplot)
|
function get_clims(sp::Subplot)
|
||||||
zmin, zmax = Inf, -Inf
|
zmin, zmax = Inf, -Inf
|
||||||
|
z_colored_series = (:contour, :contour3d, :heatmap, :histogram2d, :surface)
|
||||||
for series in series_list(sp)
|
for series in series_list(sp)
|
||||||
for vals in (series[:z], series[:line_z], series[:marker_z], series[:fill_z])
|
for vals in (series[:seriestype] in z_colored_series ? series[:z] : nothing, [:line_z], series[:marker_z], series[:fill_z])
|
||||||
if (typeof(vals) <: AbstractSurface) && (eltype(vals.surf) <: Real)
|
if (typeof(vals) <: AbstractSurface) && (eltype(vals.surf) <: Real)
|
||||||
zmin, zmax = _update_clims(zmin, zmax, ignorenan_extrema(vals.surf)...)
|
zmin, zmax = _update_clims(zmin, zmax, ignorenan_extrema(vals.surf)...)
|
||||||
elseif (vals != nothing) && (eltype(vals) <: Real)
|
elseif (vals != nothing) && (eltype(vals) <: Real)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user