Skip to content

Commit

Permalink
Update plot recipe for better looking figures
Browse files Browse the repository at this point in the history
  • Loading branch information
oashour committed Feb 10, 2021
1 parent ade2545 commit bdd16ee
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Recipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@
yguide --> L"x"
colorbar_title --> L"|\psi|"
seriescolor --> :viridis
fontfamily --> "Computer Modern"
tick_direction --> :out
s = get(plotattributes, :seriestype, :auto)
if s == :surface
zguide --> L"|\psi|"
colorbar --> false
camera --> (35, 75)
grid --> false
end
@series begin
# return series data
x_ax, y_ax, abs.(ψ)'
Expand All @@ -44,6 +53,8 @@
linewidth --> 1.5
xguide --> L"x"
yguide --> L"\log|\tilde{\psi}|"
fontfamily --> "Computer Modern"
tick_direction --> :out
#margin --> 4mm
legend --> :outertopright
for i=1:size(ψ̃)[1]
Expand All @@ -62,6 +73,8 @@
yguide --> L"x"
colorbar_title --> L"\log|\tilde{\psi}|"
seriescolor --> :viridis
fontfamily --> "Computer Modern"
tick_direction --> :out
@series begin
seriestype := s
# return series data
Expand All @@ -79,6 +92,8 @@
δN = sim.N[1:xₛ:end] .- sim.N[1]

layout --> (2, 2)
fontfamily --> "Computer Modern"
tick_direction --> :out
@series begin
linewidth --> 1.5
subplot := 1
Expand Down

0 comments on commit bdd16ee

Please sign in to comment.