From 91f51778f1a43abcd39cda8a4463549d65dec256 Mon Sep 17 00:00:00 2001 From: Michael Krabbe Borregaard Date: Fri, 24 Aug 2018 10:06:03 +0200 Subject: [PATCH] Don't define invisible when two colors --- src/recipes.jl | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/recipes.jl b/src/recipes.jl index 3ad76b3d..ad03d6b8 100644 --- a/src/recipes.jl +++ b/src/recipes.jl @@ -1024,14 +1024,6 @@ end @assert length(g.args) == 1 && typeof(g.args[1]) <: AbstractMatrix seriestype := :spy mat = g.args[1] - lunique = length(unique(mat[mat .!= 0])) - if lunique == 2 - legend --> nothing - seriescolor --> cgrad([invisible(), fg_color(plotattributes)]) - elseif lunique < 2 - legend --> nothing - seriescolor --> fg_color(plotattributes) - end n,m = size(mat) Plots.SliceIt, 1:m, 1:n, Surface(mat) end @@ -1046,7 +1038,7 @@ end markershape := :circle end if plotattributes[:markersize] == default(:markersize) - markersize := 1.5 + markersize := 1 end markerstrokewidth := 0 #marker_z := zs