The following code from the docs works nicely:
using CairoMakie
using FileIO
img = load(assetpath("cow.png"))
f = Figure()
image(f[1, 1], img)
However, when I want to define an Axis
and put that into image()
it fails:
using CairoMakie
using FileIO
img = load(assetpath("cow.png"))
f = Figure()
ax = Axis(f[1,1])
image(ax, img)
The error message reads:
`Makie.convert_arguments` for the plot type Image{Tuple{Axis, Matrix{ColorTypes.RGBA{FixedPointNumbers.N0f8}}}} and its conversion trait ContinuousSurface() was unsuccessful.