Frame
✖
Frame
Details


- The following basic settings can be given:
-
True draw a frame around the whole object False or None draw no frame All draw frames around each entry in Grid, etc. - For Graphics, Plot, and related functions, Frame->{{left,right},{bottom,top}} specifies whether to draw a frame on each edge. With the default setting FrameTicks->Automatic, ticks are included whenever a frame is drawn.
- For Grid and related constructs, lists of settings can be given. Common cases include:
-
{All,False} put frames at all horizontal positions (column lines) {False,All} put frames at all vertical positions (row lines) {-1->True} a frame around the last column {False,-1->True} a frame around the last row - General settings for Frame in Grid and related constructs can be given as:
-
spec apply spec to all items {specx} apply specx at successive horizontal positions {specx,specy} apply speck at successive horizontal and vertical positions {specx,specy,rules} also allow explicit rules for individual i,j elements - The speck can have the following forms:
-
{s1,s2,…,sn} use s1 through sn; then use defaults {{c}} use c in all cases {{c1,c2}} alternate between c1 and c2 {{c1,c2,…}} cycle through all ci {s,{c}} use s, then repeatedly use c {s1,{c},sn} use s1, then repeatedly use c, but use sn at the end {s1,s2,…,{c1,c2,…},sm,…,sn} use the first sequence of si at the beginning, then cyclically use the ci, then use the last sequence of si at the end {s1,s2,…,{},sm,…,sn} use the first sequence of si at the beginning and the last sequence at the end {i1->v1,i2->v2,…} specify what to use at positions ik {spec,rules} use rules to override specifications in spec - With settings of the form {s1,s2,…,{…},sm,…,sn}, if there are more si specified than items across the grid, si from the beginning are used for the first items, and ones from the end are used for the last items.
- Rules of the form {{imin,imax},{jmin,jmax}}->v can be used to specify frames for regions of a grid.
Examples
open allclose allBasic Examples (4)Summary of the most common use cases

https://wolfram.com/xid/0deiz2-f7u89

Put a frame on the left and right edges:

https://wolfram.com/xid/0deiz2-0c73i


https://wolfram.com/xid/0deiz2-r7zpw

Frame all elements in the grid:

https://wolfram.com/xid/0deiz2-kpiq8m

Specify overall frame style, including frame ticks and frame tick labels, using FrameStyle:

https://wolfram.com/xid/0deiz2-b9s2t0

Scope (9)Survey of the scope of standard use cases
Frame Positions (2)
Frame Styling (2)
Frame Labels and Ticks (5)
Place labels on the bottom and left frame edges:

https://wolfram.com/xid/0deiz2-cfqt5s


https://wolfram.com/xid/0deiz2-bbs60e


https://wolfram.com/xid/0deiz2-tat

Place frame tick marks and labels automatically:

https://wolfram.com/xid/0deiz2-ka2

Place frame tick marks at the specified positions:

https://wolfram.com/xid/0deiz2-ekp4gu

Generalizations & Extensions (10)Generalized and extended use cases
Grid Frame Positions (6)
Put no frame on the first column, a frame on the second, then repeat the default (which is no frame):

https://wolfram.com/xid/0deiz2-dmy7n

Put no frame on the first column, then put a frame on the second and all subsequent columns:

https://wolfram.com/xid/0deiz2-s90l2

Put no frame on the first row, a frame on the second, then repeat the default (which is no frame):

https://wolfram.com/xid/0deiz2-bpf8gf

Frame a specific row and column:

https://wolfram.com/xid/0deiz2-3gmgg3

Frame the last column and the last row:

https://wolfram.com/xid/0deiz2-brrf32


https://wolfram.com/xid/0deiz2-slzmw9


https://wolfram.com/xid/0deiz2-08v9uz

Put a frame around an individual element in the grid:

https://wolfram.com/xid/0deiz2-6z9c88

Grid Frame Styling (4)
Frame rows and columns with specific styles:

https://wolfram.com/xid/0deiz2-jdn2te

Frame a region of the grid with specific styles:

https://wolfram.com/xid/0deiz2-cmb4p0

Put a styled frame around an individual element:

https://wolfram.com/xid/0deiz2-m0n3iq

Individually styled frames can be used with FrameStyle, and have higher priority:

https://wolfram.com/xid/0deiz2-d1ixfo

Applications (1)Sample problems that can be solved with this function
Properties & Relations (3)Properties of the function, and connections to other functions
Dividers can be used to individually specify the dividers between rows and columns:

https://wolfram.com/xid/0deiz2-2otnz2


https://wolfram.com/xid/0deiz2-zr8kk6

In 2D, frames are drawn above the graphics:

https://wolfram.com/xid/0deiz2-do8ezf

Objects in Epilog are drawn on top of any graphics, including frames:

https://wolfram.com/xid/0deiz2-ct81oa

GridLines puts grids across the image:

https://wolfram.com/xid/0deiz2-j2gd0

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