Inset
✖
Inset
aligns the inset so that position opos in the object lies at position pos in the enclosing graphic.
specifies the size of the inset in the coordinate system of the enclosing graphic.
specifies that the axes of the inset should be oriented in directions dirs.
Details and Options




- Inset can be used in Graphics and Graphics3D.
- In interactive manipulation, Inset[obj,…] is by default selected as a single unit. A double‐click is required to select individual elements inside.
- The object obj can be a graphic, cell expression, string, or any other expression.
- An object inset in Graphics3D is displayed as a billboard while the 3D graphic is rotated.
- Positions can be specified by:
-
{x,y} ordinary coordinates in a plot Scaled[{x,y},…] scaled coordinates from 0 to 1 ImageScaled[{x,y},…] scaled coordinates from 0 to 1 across a whole image Offset[{dx,dy},…] absolute offset in printer's points Center, etc. {Center,Center}, etc. {valx,valy,valz} coordinates in a 3D graphic coordinates can be numbers, Automatic, or Left, Center, Right, or Axis.
coordinates can be numbers, Automatic, or Top, Center, Bottom, Baseline, or Axis.
- Axis corresponds to the position of the axis in a plot or the center line in typeset text.
- Center corresponds to a position centered with respect to the whole image.
- Inset[obj] is equivalent to Inset[obj,Center].
- The default for opos is the setting for the AlignmentPoint option of obj, or by default, the center of the bounding box for obj.
- If size is Automatic, the inset is given at its natural size:
-
graphic determined by ImageSize setting typeset expression absolute size without wrapping - A size of {w,Automatic} specifies that a typeset expression should be wrapped at width w.
- If size is given as {w,h}, then any object obj whose aspect ratio is not fixed will be horizontally or vertically stretched so as to fit exactly in a w×h rectangle.
- If obj is an object with fixed aspect ratio, then blank space will be left equally on both sides if there is a direction where the object would have to be stretched in order to fit exactly.
- The setting for the option Background specifies the background to be used for the whole region of the inset.
- By default, the inset is arranged so that its
and
directions are oriented with the
and
directions of the enclosing graphic.
- Inset[…,dirs] can be used to specify different orientations.
- Possible choices for dirs are:
-
Automatic default orientation {xx,xy} direction along {xx,xy}
{Automatic,{yx,yy}} direction along {yx,yy}
{{xx,xy},{yx,yy}} and
directions along {xx,xy} and {yx,yy}
None never reorient the contents of the Inset - Specifying only the
or only the
direction in general leads to a rigid rotation of the inset.
- Specifying both the
and
directions in general leads to a rotation and shear, in which the original inset rectangle becomes a parallelogram defined by the vector directions given.
- Only the directions of the vectors {xx,xy} and {yx,yy} are significant; the scale of the inset is determined by {w,h}.
- With dirs specified as None, the
direction of obj is always maintained as horizontal.
- With dirs specified as {Automatic,None}, the
direction is maintained as vertical.
- If Inset[Graphics3D[…],{x,y}] appears in a 2D graphic, then the projection of the alignment point of the Graphics3D, or by default the center of its 2D bounding box, will be placed at position {x,y} in the 2D graphic.
- Inset[Graphics3D[…],{x,y,z},{ox,oy}] specifies that position {ox,oy} in the 2D projection of the object should lie at position {x,y,z}.
- The 2D graphic is always taken to be oriented parallel to the viewing plane for the 3D graphic.
- The following options can be given for Inset:
-
Alignment Left how to align the contents of the inset Background None the background to use for the whole region of the inset BaseStyle {} the base style to use for the inset ContentSelectable Automatic whether to allow contents to be selected FormatType Automatic format type for text - Background->Automatic uses whatever background has been specified for the whole graphic containing the inset.
- Scaled, ImageScaled, and Offset forms can be used to specify the size.
Examples
open allclose allBasic Examples (4)Summary of the most common use cases

https://wolfram.com/xid/0y8ej7-icp3tk

Inset an expression in a graphic:

https://wolfram.com/xid/0y8ej7-lkdt6

Inset 3D graphics above a 2D plot:

https://wolfram.com/xid/0y8ej7-ef9yar

Inset a 2D graphic into a 3D graphic:

https://wolfram.com/xid/0y8ej7-f2agt5

Scope (19)Survey of the scope of standard use cases
Positions (6)
By default, Center is used for the position:

https://wolfram.com/xid/0y8ej7-1bcgg

Automatic is equivalent to Center:

https://wolfram.com/xid/0y8ej7-cchqh9

Specify ordinary coordinates in a graphic:

https://wolfram.com/xid/0y8ej7-tmg5z


https://wolfram.com/xid/0y8ej7-f03eji

Use Scaled coordinates:

https://wolfram.com/xid/0y8ej7-juvsq


https://wolfram.com/xid/0y8ej7-hw5fvl

ImageScaled specifies coordinates in a whole image including padding:

https://wolfram.com/xid/0y8ej7-swuf7

Use Offset coordinates:

https://wolfram.com/xid/0y8ej7-joaeae

Symbolic positions can be specified:

https://wolfram.com/xid/0y8ej7-uh4ps


https://wolfram.com/xid/0y8ej7-erio5d

Alignments (4)
By default, Center is used for the alignment position:

https://wolfram.com/xid/0y8ej7-b6xrvm

Automatic is equivalent to Center:

https://wolfram.com/xid/0y8ej7-i147g


https://wolfram.com/xid/0y8ej7-gnz65x

Specify an alignment position within the inset, using symbolic positions:

https://wolfram.com/xid/0y8ej7-c1msl2


https://wolfram.com/xid/0y8ej7-8q5w6


https://wolfram.com/xid/0y8ej7-j7001r


https://wolfram.com/xid/0y8ej7-fe6y68

Specify an alignment position using the inset graphics coordinates:

https://wolfram.com/xid/0y8ej7-hllps

https://wolfram.com/xid/0y8ej7-h3ramn


https://wolfram.com/xid/0y8ej7-jsbzyu


https://wolfram.com/xid/0y8ej7-ip8bhf


https://wolfram.com/xid/0y8ej7-q7vgz

Set the axis as an alignment position:

https://wolfram.com/xid/0y8ej7-h5cs53

https://wolfram.com/xid/0y8ej7-graqvb

Sizes (6)
If the size is not given, or is Automatic, the image size of the inset graphic is used:

https://wolfram.com/xid/0y8ej7-ca1ev5

https://wolfram.com/xid/0y8ej7-t8w7r


https://wolfram.com/xid/0y8ej7-fukff7

For typeset expressions, absolute font size is used:

https://wolfram.com/xid/0y8ej7-gfnq4b

Specify the width of the inset by the units of the enclosing graphic:

https://wolfram.com/xid/0y8ej7-ktz9k

https://wolfram.com/xid/0y8ej7-cmkru5

Given both width and height sizes, the inset graphic will be stretched, if the aspect ratio is not fixed:

https://wolfram.com/xid/0y8ej7-bazcbd

https://wolfram.com/xid/0y8ej7-btte5s

{w,Automatic} specifies the width at which a typeset expression should be wrapped:

https://wolfram.com/xid/0y8ej7-derx99

https://wolfram.com/xid/0y8ej7-p8kefy

In 3D graphics, image size is specified in absolute values:

https://wolfram.com/xid/0y8ej7-gr5bdr

https://wolfram.com/xid/0y8ej7-ptjm2


https://wolfram.com/xid/0y8ej7-02bja

Scaled can also be used to specify the image size:

https://wolfram.com/xid/0y8ej7-fdp2gl

Directions (3)
Specify the direction with which the axis of the inset should be aligned:

https://wolfram.com/xid/0y8ej7-l5t9sc

https://wolfram.com/xid/0y8ej7-cvwbsv


https://wolfram.com/xid/0y8ej7-sqzls


https://wolfram.com/xid/0y8ej7-iuhvlm


https://wolfram.com/xid/0y8ej7-d1y4z8

Specify the direction with which the axis of the inset should be aligned:

https://wolfram.com/xid/0y8ej7-b1ezac

https://wolfram.com/xid/0y8ej7-gx6ez9


https://wolfram.com/xid/0y8ej7-cjblr5


https://wolfram.com/xid/0y8ej7-bef4c9


https://wolfram.com/xid/0y8ej7-6ov1d

Specify the directions for the and
axes separately:

https://wolfram.com/xid/0y8ej7-iy0bp3

https://wolfram.com/xid/0y8ej7-ha1j26


https://wolfram.com/xid/0y8ej7-cs1tlp

Generalizations & Extensions (3)Generalized and extended use cases
Options (7)Common values & functionality for each option
Alignment (1)
Background (1)
BaseStyle (2)
ContentSelectable (1)
FormatType (2)
By default, expressions are displayed using TraditionalForm:

https://wolfram.com/xid/0y8ej7-clvyw6

Display expressions using StandardForm:

https://wolfram.com/xid/0y8ej7-d0fh0a

Applications (3)Sample problems that can be solved with this function
Multiple function plot with a legend:

https://wolfram.com/xid/0y8ej7-fasj3h

https://wolfram.com/xid/0y8ej7-ent10h


https://wolfram.com/xid/0y8ej7-mrosdd
Set up an annotation function using Inset:

https://wolfram.com/xid/0y8ej7-fummq0
Display the map with the annotations:

https://wolfram.com/xid/0y8ej7-fdi9zh

Define a stock plot with a legend:

https://wolfram.com/xid/0y8ej7-c4zk56
Draw stock price changes of a few automakers:

https://wolfram.com/xid/0y8ej7-8uyes

Properties & Relations (2)Properties of the function, and connections to other functions
The symbolic positions are relative to ImageScaled coordinates:

https://wolfram.com/xid/0y8ej7-gb3ech


https://wolfram.com/xid/0y8ej7-nmlb3c

For typeset expressions, Text offers functionality similar to Inset:

https://wolfram.com/xid/0y8ej7-flrwby


https://wolfram.com/xid/0y8ej7-gxkn1l

Wolfram Research (2007), Inset, Wolfram Language function, https://reference.wolfram.com/language/ref/Inset.html (updated 2014).
Text
Wolfram Research (2007), Inset, Wolfram Language function, https://reference.wolfram.com/language/ref/Inset.html (updated 2014).
Wolfram Research (2007), Inset, Wolfram Language function, https://reference.wolfram.com/language/ref/Inset.html (updated 2014).
CMS
Wolfram Language. 2007. "Inset." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/Inset.html.
Wolfram Language. 2007. "Inset." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/Inset.html.
APA
Wolfram Language. (2007). Inset. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Inset.html
Wolfram Language. (2007). Inset. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Inset.html
BibTeX
@misc{reference.wolfram_2025_inset, author="Wolfram Research", title="{Inset}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/Inset.html}", note=[Accessed: 25-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_inset, organization={Wolfram Research}, title={Inset}, year={2014}, url={https://reference.wolfram.com/language/ref/Inset.html}, note=[Accessed: 25-March-2025
]}