-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathargs.jl
More file actions
36 lines (31 loc) · 952 Bytes
/
Copy pathargs.jl
File metadata and controls
36 lines (31 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
const defFloat = Float64
const defInt = Int64
const defComp = ComplexF64
using Plots
using DelimitedFiles
using Measures
using LaTeXStrings
using StatsBase
# Define a custom color palette and figure defaults.
colorlist = [
:indianred, # CD5C5C
:cornflowerblue, # 6699FF
:olivedrab, # 6B8E23
:darkgoldenrod,
:mediumpurple, # 9370DB
]
default(
guidefont=font(10, "Computer Modern"), # axis labels
tickfont=font(10, "Computer Modern"), # tick labels
legendfont=font(10, "Computer Modern"), # legend
titlefont=font(10, "Computer Modern"), # title
palette=colorlist,
# left_margin=5pt, right_margin=5pt, bottom_margin=5pt, top_margin=5pt,
)
# Simple plot-saving helper function.
function saveplot(plt, filename::String; background=:transparent, args...)
plot!( plt; background=background, args... )
savefig( plt, filename )
plot!( plt; background=:white )
return plt
end