3D axis flip / mirror

Source code Author Update time

using Plots
pgfplotsx()
using LinearAlgebra
scalefontsizes(0.4)
(x, y) = (collect(-6:0.5:10), collect(-8:0.5:8))
args = (x, y, ((x, y)->begin
                sinc(norm([x, y]) / π)
            end))
kw = (xlabel = "x", ylabel = "y", zlabel = "z", grid = true, minorgrid = true)
plots = [wireframe(args..., title = "wire"; kw...)]
for ax = (:x, :y, :z)
    push!(plots, wireframe(args..., title = "wire-flip-$(ax)", xflip = ax === :x, yflip = ax === :y, zflip = ax === :z; kw...))
end
for ax = (:x, :y, :z)
    push!(plots, wireframe(args..., title = "wire-mirror-$(ax)", xmirror = ax === :x, ymirror = ax === :y, zmirror = ax === :z; kw...))
end
plt = plot(plots..., layout = @layout([_ ° _; ° ° °; ° ° °]), margin = 0 * Plots.px)
resetfontsizes()
plt