Inset
Inset[_Graphics | _Graphics3D | _Image | _EditorView | _, pos_List, opts___]
Inset[_Graphics | _Graphics3D | _Image | _EditorView | _, pos_List, origin_List, size_List, opts___]
a graphics object, that allows to put another Graphics, Image, EditorView, CellView or anything else for which WLJS execution environment makes sense into the canvas.
pos
has to be a 2D vector, that specifies the position of the inset in the local coordination systemorigin
is optional and specifies the coordinates of the pin point in the local coordinate system of enclosing graphics. By the default it takes the center of calculated sizesize
is displayable size in the local coordinate system of parent graphics object (with respect toInset
).
Options
Examples
inset = Graphics[{
LightRed,
Disk[{0,0},0.1],
Black, Directive[FontSize->16], Text["Test", {-1/16,-1/30}]
}, PlotRange->{{-1,1}, {-1,1}}];
Plot[x, {x,0,10}, Epilog->{Inset[inset]}]
or put EditorView
Dynamics
The second arguments pos
that specifies the position of an inset does support updates.