Navigation
image
image(x, y, image)
image(image)
Plots an image on range
x, y
(defaults to dimensions).
Examples
using CairoMakie
using FileIO
img = load(assetpath("cow.png"))
f = Figure()
image(f[1, 1], img,
axis = (title = "Default",))
image(f[1, 2], img,
axis = (aspect = DataAspect(), title = "DataAspect()",))
image(f[2, 1], rotr90(img),
axis = (aspect = DataAspect(), title = "rotr90",))
image(f[2, 2], img',
axis = (aspect = DataAspect(), yreversed = true,
title = "img' and reverse y-axis",))
f
© Makie.jl. Last modified: October 16, 2021. Website built with
Franklin.jl
and the
Julia programming language
.
These docs were autogenerated using Makie: v0.15.3, GLMakie: v0.4.7, CairoMakie: v0.6.6, WGLMakie: v0.4.7