Images with custom axes

Source code Author Update time

using Plots
pythonplot()
using TestImages
img = testimage("lighthouse")
plot([-π, π], [-1, 1], reverse(img, dims = 1), yflip = false, aspect_ratio = :none)
plot!(sin, -π, π, lw = 3, color = :red)
2023-01-27T18:05:17.834434 image/svg+xml Matplotlib v3.6.3, https://matplotlib.org/

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