Don't define invisible when two colors
This commit is contained in:
parent
5c2bf5d76c
commit
91f51778f1
@ -1024,14 +1024,6 @@ end
|
|||||||
@assert length(g.args) == 1 && typeof(g.args[1]) <: AbstractMatrix
|
@assert length(g.args) == 1 && typeof(g.args[1]) <: AbstractMatrix
|
||||||
seriestype := :spy
|
seriestype := :spy
|
||||||
mat = g.args[1]
|
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)
|
n,m = size(mat)
|
||||||
Plots.SliceIt, 1:m, 1:n, Surface(mat)
|
Plots.SliceIt, 1:m, 1:n, Surface(mat)
|
||||||
end
|
end
|
||||||
@ -1046,7 +1038,7 @@ end
|
|||||||
markershape := :circle
|
markershape := :circle
|
||||||
end
|
end
|
||||||
if plotattributes[:markersize] == default(:markersize)
|
if plotattributes[:markersize] == default(:markersize)
|
||||||
markersize := 1.5
|
markersize := 1
|
||||||
end
|
end
|
||||||
markerstrokewidth := 0
|
markerstrokewidth := 0
|
||||||
#marker_z := zs
|
#marker_z := zs
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user