Images with custom axes

Source code Author Update time

using Plots
gaston()
using TestImages
img = testimage("lighthouse")
plot([-π, π], [-1, 1], reverse(img, dims = 1), yflip = false, aspect_ratio = :none)
plot!(sin, -π, π, lw = 3, color = :red)
Gnuplot Produced by GNUPLOT 5.2 patchlevel 8 -1.0 -0.5 0.0 0.5 1.0 -3 -2 -1 0 1 2 3 gnuplot_plot_1a