Merge pull request #2328 from daschw/showtheme

update showtheme
This commit is contained in:
Daniel Schwabeneder 2019-12-13 23:37:15 +01:00 committed by GitHub
commit a07fd5d3db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,7 +120,8 @@ _get_showtheme_args(thm::Symbol, func::Symbol) = thm, get(_color_functions, func
subplot := 4 subplot := 4
seriestype := :heatmap seriestype := :heatmap
seriescolor := colorgradient seriescolor := colorgradient
ticks := -5:5:5 xticks := (-2π:2π:2π, string.(-2:2:2, "π"))
yticks := (-2π:2π:2π, string.(-2:2:2, "π"))
x, y, z x, y, z
end end
@ -128,12 +129,14 @@ _get_showtheme_args(thm::Symbol, func::Symbol) = thm, get(_color_functions, func
subplot := 5 subplot := 5
seriestype := :surface seriestype := :surface
seriescolor := colorgradient seriescolor := colorgradient
xticks := (-2π:2π:2π, string.(-2:2:2, "π"))
yticks := (-2π:2π:2π, string.(-2:2:2, "π"))
x, y, z x, y, z
end end
n = 100 n = 100
ts = range(0, stop = 10π, length = n) ts = range(0, stop = 10π, length = n)
x = ts .* cos.(ts) x = (0.1ts) .* cos.(ts)
y = (0.1ts) .* sin.(ts) y = (0.1ts) .* sin.(ts)
z = 1:n z = 1:n