using CairoMakie, Random
include("makieTheme1.jl") # don't forget to include the theme.
x = -1:0.05:1
y = -1.5:0.05:2
egg(x,y) = x^2 + y^2/(1.4 + y/5)^2
segg = [egg(x,y) for x in x, y in y]
fig = Figure(resolution = (470, 550))
ax = Axis(fig, xlabel = "x", ylabel = "y")
clines = contour!(x, y, segg, linewidth = 1.2, colormap = :matter, levels = 0:0.02:1)
cbar = Colorbar(fig, clines, label ="egg-l", labelpadding = 0)
fig[1, 1] = ax
fig[1, 2] = cbar
#save("./results/FigContour2.svg", scene, pt_per_unit = 0.7);
#save("./results/FigContour2_1.png", fig, px_per_unit = 2)
fig