How to add an inset to a plot

plot( 1:5 )
plot!( -5:8, (-5:8).^2, inset = (1, bbox(0.1,0.0,0.4,0.4)), subplot = 2)

Where 1 is the subplot index where the inset should appear and subplot = 2 assigns the correct subplot index to this series.

6 Likes