From bdd16ee275da2d0aabd169dc97368c7e73818e5a Mon Sep 17 00:00:00 2001 From: Omar Ashour Date: Wed, 10 Feb 2021 10:17:34 -0800 Subject: [PATCH] Update plot recipe for better looking figures --- src/Recipes.jl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Recipes.jl b/src/Recipes.jl index a8c2137..d415631 100644 --- a/src/Recipes.jl +++ b/src/Recipes.jl @@ -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.(ψ)' @@ -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] @@ -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 @@ -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