default alphas to 1.0
This commit is contained in:
parent
61f2d825b6
commit
cae7c8b965
@ -1679,9 +1679,13 @@ function _update_series_attributes!(plotattributes::AKW, plt::Plot, sp::Subplot)
|
||||
# update alphas
|
||||
for asym in (:linealpha, :markeralpha, :fillalpha)
|
||||
if plotattributes[asym] === nothing
|
||||
if plotattributes[:seriesalpha] === nothing
|
||||
plotattributes[asym] = plotattributes[:seriesalpha] = 1.0
|
||||
else
|
||||
plotattributes[asym] = plotattributes[:seriesalpha]
|
||||
end
|
||||
end
|
||||
end
|
||||
if plotattributes[:markerstrokealpha] === nothing
|
||||
plotattributes[:markerstrokealpha] = plotattributes[:markeralpha]
|
||||
end
|
||||
|
||||
10011
surface.tex
Normal file
10011
surface.tex
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,13 @@
|
||||
using Plots, Test
|
||||
|
||||
@testset "Default colors and alphas" begin
|
||||
t = range(0, 3π, length = 100)
|
||||
@test surface(t, t, (x, y) -> x * sin(x) - y * cos(y))[1][1][:seriesalpha] !== nothing
|
||||
@test surface(t, t, (x, y) -> x * sin(x) - y * cos(y))[1][1][:fillalpha] !== nothing
|
||||
@test plot(t, t)[1][1][:fillalpha] !== nothing
|
||||
@test plot(t, t)[1][1][:seriesalpha] !== nothing
|
||||
end
|
||||
|
||||
const PLOTS_DEFAULTS = Dict(:theme => :wong2)
|
||||
Plots.__init__()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user