mirror of
https://gitlab.rlp.net/mobitar/ReCo.jl.git
synced 2025-09-04 09:12:35 +00:00
Fixed graphics
This commit is contained in:
parent
e8faf811f1
commit
f4d47c7d2d
15 changed files with 442 additions and 365 deletions
|
@ -1,31 +0,0 @@
|
|||
function init_cairomakie!()
|
||||
CairoMakie.activate!()
|
||||
set_theme!()
|
||||
|
||||
return nothing
|
||||
end
|
||||
|
||||
function gen_figure(; padding=5)
|
||||
text_width_in_pt = 405
|
||||
|
||||
return Figure(;
|
||||
resolution=(text_width_in_pt, 0.55 * text_width_in_pt),
|
||||
fontsize=10,
|
||||
figure_padding=padding,
|
||||
)
|
||||
end
|
||||
|
||||
function set_gaps!(fig::Figure)
|
||||
colgap!(fig.layout, 5)
|
||||
rowgap!(fig.layout, 5)
|
||||
|
||||
return nothing
|
||||
end
|
||||
|
||||
function save_fig(filename::String, fig::Figure; parent_dir="exports/graphics")
|
||||
mkpath(parent_dir)
|
||||
|
||||
save("$parent_dir/$filename", fig; pt_per_unit=1)
|
||||
|
||||
return nothing
|
||||
end
|
|
@ -1,7 +1,7 @@
|
|||
using CairoMakie
|
||||
using LaTeXStrings: @L_str
|
||||
|
||||
includet("common_CairoMakie.jl")
|
||||
includet("../src/Visualization/common_CairoMakie.jl")
|
||||
|
||||
const minimum_r_σ_ratio = 2^(1 / 6)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue