Hi, Iβm creating the attached figure with
pgfplotsx()
p1 = plot(π.Ε΄,π.Δ΄, label = "Efficiency", color = 3, linestyle=:dash, legend = :topright, xguide = L"\hat{W}(\hat{w})", yguide = L"\hat{J}(\hat{w})") #, xguidefontvalign=:top, xguidefonthalign = :right, yguidefonthalign = :right, xguide_position = :right, yguideposition = :top)
plot!(π.Ε΄[argmax(π.Δ΄):argmax(π.Ε΄)],π.Δ΄[argmax(π.Δ΄):argmax(π.Ε΄)], label = "Redistribution", color = 3)
plot!(xticks = ([0.0], ["0"]))
plot!(yticks = ([0.0], ["0"]))
plot!([minxlim, π.Ε΄[argmax(π.Ε΄)]],[π.Δ΄[argmax(π.Ε΄)],π.Δ΄[argmax(π.Ε΄)]], label = "", linewidth = 1, linestyle=:dash, color = :black)
plot!([π.Ε΄[argmax(π.Ε΄)], π.Ε΄[argmax(π.Ε΄)]],[minylim,π.Δ΄[argmax(π.Ε΄)]], label = "", linewidth = 1, linestyle=:dash, color = :black)
plot!([minxlim, π.Ε΄[argmax(π.Δ΄)]],[π.Δ΄[argmax(π.Δ΄)],π.Δ΄[argmax(π.Δ΄)]], label = "", linewidth = 1, linestyle=:dash, color = :black)
plot!([π.Ε΄[argmax(π.Δ΄)], π.Ε΄[argmax(π.Δ΄)]],[minylim,π.Δ΄[argmax(π.Δ΄)]], label = "", linewidth = 1, linestyle=:dash, color = :black)
scatter!([π.Ε΄[argmax(π.Ε΄)]],[π.Δ΄[argmax(π.Ε΄)]], label = "", color = 1, marker=:square)
scatter!([π.Ε΄[argmax(π.Δ΄)]],[π.Δ΄[argmax(π.Δ΄)]], label = "", color = 2, marker=:circle)
plot!(Ε΄_lc,IC_lc, label = "Nash Bargaining", color = 4)
xlims!((minylim, 1.5*π.Ε΄[argmax(π.Ε΄)]))
ylims!((minxlim, 1.5*π.Δ΄[argmax(π.Δ΄)]))
plot!(yticks = ([π.Δ΄[argmax(π.Δ΄)] π.Δ΄[argmax(π.Ε΄)]], [L"\hat{J}(\hat{w}^{\ast j})", L"\hat{J}(\hat{w}^{\ast h})"]))
plot!(xticks = ([π.Ε΄[argmax(π.Δ΄)] π.Ε΄[argmax(π.Ε΄)]], [L"\hat{W}(\hat{w}^{\ast j})", L"\hat{W}(\hat{w}^{\ast h})"]))
savefig(p1, "$pathfigures/x.tikz")
This is the result:
Now I want to move the xaxis labels to the position marked in red. The closest I can get is by adding:
xguidefonthalign = :right, yguidefonthalign = :right
which then produces:
As you can see, the gap between the labels and the axis is too big. Is there a way to close that gap? I have tried with annotations (but if I use annotate! then pgfplotsx() does not let met annotate outside the box).
Thanks a lot for any suggestion!

