From cb7c63064e946930a406820960b6b45815761608 Mon Sep 17 00:00:00 2001 From: Nicholas Bauer Date: Wed, 22 Sep 2021 03:17:50 -0400 Subject: [PATCH] For Shape type, cut off process --- src/colorbars.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/colorbars.jl b/src/colorbars.jl index db59c7ef..109c3a05 100644 --- a/src/colorbars.jl +++ b/src/colorbars.jl @@ -8,7 +8,7 @@ process_clims(f) = f function get_clims(sp::Subplot, op = process_clims(sp[:clims])) zmin, zmax = Inf, -Inf for series in series_list(sp) - if series[:colorbar_entry] + if series[:colorbar_entry] && (series[:seriestype] != :shape || series[:fillcolor] === nothing) zmin, zmax = _update_clims(zmin, zmax, get_clims(series, op)...) end end @@ -16,6 +16,7 @@ function get_clims(sp::Subplot, op = process_clims(sp[:clims])) end function get_clims(sp::Subplot, series::Series, op = process_clims(sp[:clims])) + series[:seriestype] != :shape || series[:fillcolor] === nothing || return -Inf, Inf zmin, zmax = if series[:colorbar_entry] get_clims(sp, op) else