Plot image at (x,y) location on scatter plot

Let’s say I’ve done some clustering on my data (like in the image below) and want to show a representative image (i.e. an MxN matrix) from that cluster overlaid at an (x,y) coordinate near that cluster’s center. Is this possible with Plots.jl?

Thank you!

You could try using insets.
See one Plots.jl example in the docs.

1 Like

You can do a heatmap! on top of a scatter plot

scatter(10 .* rand(40), 20 .* rand(40))
heatmap!(1:5, 6:15, rand(5,10))

plot_280

1 Like

This works! Thank you :smiley: