Merge pull request #1189 from daschw/spy
use fg_color for matrices with unique non-zeros in spy recipe
This commit is contained in:
commit
928a2d646b
@ -937,8 +937,7 @@ end
|
|||||||
mat = g.args[1]
|
mat = g.args[1]
|
||||||
if length(unique(mat[mat .!= 0])) < 2
|
if length(unique(mat[mat .!= 0])) < 2
|
||||||
legend --> nothing
|
legend --> nothing
|
||||||
# revert the default gradient to have a darker (almost black) color in the default theme
|
seriescolor --> cgrad([invisible(), fg_color(plotattributes)])
|
||||||
seriescolor --> cgrad([cgrad()[0], cgrad()[1]])
|
|
||||||
end
|
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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user