FrameStyle

FrameStyle

is an option for Graphics, Grid, and other constructs that specifies the style in which to draw frames.

Details

  • FrameStyle->style specifies that all edges of the frame are to be generated with the specified style or graphics directive.
  • FrameStyle->{{left,right},{bottom,top}} specifies that different sides of a graphics frame should be drawn with different styles.
  • Styles can be specified using graphics directives such as Thick, Red, Dashed as well as Thickness, Dashing, and combinations given by Directive.
  • The default style of frames is normally specified by the option DefaultFrameStyle.

Examples

open allclose all

Basic Examples  (3)

Specify overall frame style, including the frame, frame ticks, and the frame tick labels:

Specify the frame style of a grid:

Specify the style of each frame edge:

Scope  (4)

Styles associated with lines affect frame edges and frame ticks:

Styles associated with fonts affect frame tick labels:

Styles can be combined by Directive:

Use Item to specify the styles for individual elements in the grid:

Properties & Relations  (3)

FrameStyle affects frame, frame ticks, and frame tick labels:

LabelStyle offers overall style of all the label-like elements, including frame tick labels:

FrameStyle can be used together with LabelStyle and has higher priority:

FrameTicksStyle affects frame ticks and frame tick labels, but nothing else:

FrameStyle can be used together with FrameTicksStyle, but has lower priority:

Possible Issues  (1)

Non-graphics constructs such as Framed and Grid do not support side specifications:

Wolfram Research (1991), FrameStyle, Wolfram Language function, https://reference.wolfram.com/language/ref/FrameStyle.html (updated 2008).

Text

Wolfram Research (1991), FrameStyle, Wolfram Language function, https://reference.wolfram.com/language/ref/FrameStyle.html (updated 2008).

CMS

Wolfram Language. 1991. "FrameStyle." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2008. https://reference.wolfram.com/language/ref/FrameStyle.html.

APA

Wolfram Language. (1991). FrameStyle. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FrameStyle.html

BibTeX

@misc{reference.wolfram_2024_framestyle, author="Wolfram Research", title="{FrameStyle}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/FrameStyle.html}", note=[Accessed: 22-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_framestyle, organization={Wolfram Research}, title={FrameStyle}, year={2008}, url={https://reference.wolfram.com/language/ref/FrameStyle.html}, note=[Accessed: 22-December-2024 ]}