using CairoMakie
include("makieTheme1.jl") # don't forget to include the theme.
x = -2π:0.1:2π
fig = Figure(resolution = (600, 400), font = "Avenir Light")
ax = Axis(fig, xlabel = "x", ylabel = "f(x)")
line1 = lines!(x, sin.(x), color = "#56B4E9", linewidth = 2)
line2 = lines!(x, cos.(x), color = :black, linewidth = 2, linestyle = :dash)
leg = Legend(fig, [line1, line2], ["sin(x)", "cos(x)"])
fig[1, 1] = ax
fig[1, 1] = leg
#save("/results/FigLabels.svg", scene, pt_per_unit = 0.7);
#save("./results/FigLine.png", fig, px_per_unit = 2)
fig
┌ Warning: Could not find font Avenir Light, using Dejavu Sans └ @ AbstractPlotting /Users/lalonso/.julia/packages/AbstractPlotting/LTrME/src/conversions.jl:847