3D axis flip / mirror

Source code Author Update time

using Plots
gaston()
using LinearAlgebra
with(scalefonts = 0.5) do
    (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
    plot(plots..., layout = @layout([_ ° _; ° ° °; ° ° °]), margin = 0 * Plots.px)
end
Gnuplot Produced by GNUPLOT 5.4 patchlevel 2 -5 0 5 10 -6 -3 0 3 6 0.00 0.25 0.50 0.75 1.00 gnuplot_plot_1b x y wire-flip-x -5 0 5 10 -6 -3 0 3 6 0.00 0.25 0.50 0.75 1.00 gnuplot_plot_1c x y wire-mirror-x -5 0 5 10 -6 -3 0 3 6 0.00 0.25 0.50 0.75 1.00 gnuplot_plot_1d x y z wire -5 0 5 10 -6 -3 0 3 6 0.00 0.25 0.50 0.75 1.00 gnuplot_plot_1e x y z wire-flip-y -5 0 5 10 -6 -3 0 3 6 0.00 0.25 0.50 0.75 1.00 gnuplot_plot_1f x y z wire-mirror-y -5 0 5 10 -6 -3 0 3 6 0.00 0.25 0.50 0.75 1.00 gnuplot_plot_1h x z wire-flip-z -5 0 5 10 -6 -3 0 3 6 0.00 0.25 0.50 0.75 1.00 gnuplot_plot_1i x z wire-mirror-z

This page was generated using DemoCards.jl and Literate.jl.