# Axis() in combination with images()

**URL:** <https://discourse.julialang.org/t/axis-in-combination-with-images/87937>\
**Category:** Visualization\
**Tags:** makie\
**Created:** [September 28, 2022, 3:03pm UTC](https://discourse.julialang.org/t/axis-in-combination-with-images/87937 "2022-09-28T15:03:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pascal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pascal/32/207922_2.png) [@pascal](https://discourse.julialang.org/u/pascal)\
**Post date:** [September 28, 2022, 3:03pm UTC](https://discourse.julialang.org/t/axis-in-combination-with-images/87937/1 "2022-09-28T15:03:02Z")

</div>

The following code from the docs works nicely:

```julia
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:

```julia
using CairoMakie
using FileIO
img = load(assetpath("cow.png"))
f = Figure()
ax = Axis(f[1,1])
image(ax, img)

```

The error message reads:

```julia
`Makie.convert_arguments` for the plot type Image{Tuple{Axis, Matrix{ColorTypes.RGBA{FixedPointNumbers.N0f8}}}} and its conversion trait ContinuousSurface() was unsuccessful.

```

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [September 28, 2022, 3:03pm UTC](https://discourse.julialang.org/t/axis-in-combination-with-images/87937/2 "2022-09-28T15:03:46Z")

</div>

`image!` because you’re mutating an Axis, the other one uses `image` because it _creates_ an Axis as well. I know it also mutates a `Figure` so it’s not 100% consistent but that’s how it was defined

---

<div class="post-metadata">

**Author:** ![pascal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pascal/32/207922_2.png) [@pascal](https://discourse.julialang.org/u/pascal)\
**Post date:** [September 28, 2022, 3:05pm UTC](https://discourse.julialang.org/t/axis-in-combination-with-images/87937/3 "2022-09-28T15:05:06Z")

</div>

D’oh 🤦‍♂️ . Yes, of course, thanks!
