From c76fc5b9096a700f1d5a3c597ebdd525b754aa72 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Wed, 18 Oct 2017 20:47:06 +0200 Subject: [PATCH] use fg_color for matrices with unique non-zeros in spy recipe --- src/recipes.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/recipes.jl b/src/recipes.jl index 6e49fb03..bae34819 100644 --- a/src/recipes.jl +++ b/src/recipes.jl @@ -937,8 +937,7 @@ end mat = g.args[1] if length(unique(mat[mat .!= 0])) < 2 legend --> nothing - # revert the default gradient to have a darker (almost black) color in the default theme - seriescolor --> cgrad([cgrad()[0], cgrad()[1]]) + seriescolor --> cgrad([invisible(), fg_color(plotattributes)]) end n,m = size(mat) Plots.SliceIt, 1:m, 1:n, Surface(mat)