Movatterモバイル変換


[0]ホーム

URL:


WOLFRAM

Wolfram Language & System Documentation Center
Graphics

Graphics[primitives,options]

represents a two-dimensional graphical image.

Details and Options
Details and OptionsDetails and Options
Examples  
Basic Examples  
Scope  
Primitives  
Directives  
Coordinates  
Options  
AlignmentPoint  
AspectRatio  
Axes  
Show MoreShow More
AxesLabel  
AxesOrigin  
AxesStyle  
Background  
BaselinePosition  
BaseStyle  
ContentSelectable  
Epilog  
FormatType  
Frame  
FrameLabel  
FrameStyle  
FrameTicks  
FrameTicksStyle  
GridLines  
GridLinesStyle  
ImageMargins  
ImagePadding  
ImageSize  
LabelStyle  
Method  
"AxesInFront"  
"FrameInFront"  
"GridLinesInFront"  
"TransparentPolygonMesh"  
PlotLabel  
PlotRange  
PlotRangeClipping  
PlotRangePadding  
PlotRegion  
Prolog  
RotateLabel  
Ticks  
TicksStyle  
Applications  
Properties & Relations  
Neat Examples  
See Also
Tech Notes
Related Guides
Related Workflows
Related Links
History
Cite this Page

Graphics

Graphics[primitives,options]

represents a two-dimensional graphical image.

Details and Options

Examples

open allclose all

Basic Examples  (2)

Use lines, polygons, circles, etc. to build up a graphics image:

Use plot functions to automatically createGraphics from different types of data:

Scope  (13)

Primitives  (4)

Graphics primitives are drawn in the order in which they are given inGraphics:

Polygons can fold over themselves:

Vertices can be shared by usingGraphicsComplex:

Inset an expression in a graphic:

Directives  (5)

Directives can specify color and opacity of faces:

Colors, thickness, and dashing directives affect lines, arrows, and edges:

Some primitives have special directives to specify various properties:

Directives can be applied to individual objects usingStyle:

Graphics directives remain in effect only until the end of the list that contains them:

Coordinates  (4)

Use an ordinary coordinate system:

Specify coordinates by fractions of the plot range:

Specify coordinates by fractions of the whole image:

Offset coordinates by printer's points:

Options  (71)

AlignmentPoint  (1)

Specify the coordinates withinInset to be aligned with the center of the enclosing graphic:

AspectRatio  (1)

Use numerical values forAspectRatio:

Axes  (2)

Draw all the axes:

Draw the axis but not the axis:

AxesLabel  (2)

Place a label for the axis:

Specify a label for each axis:

AxesOrigin  (2)

Determine where the axes cross automatically:

Specify the axes' origin explicitly:

AxesStyle  (1)

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

Specify the style of each axis:

Background  (1)

Specify a background color:

BaselinePosition  (3)

Align the center of a graphic with the baseline of the text:

Specify the baseline of a graphic as a fraction of the height by usingScaled:

Use the axis of a graphic as the baseline:

BaseStyle  (2)

Set the starting style:

Set multiple starting styles:

ContentSelectable  (3)

Allow the individual graphics objects to be selectable by a single click:

No individual object is selectable; the whole graphic appears as one object:

The first click selects the whole graphic, and subsequent ones select individual objects:

Epilog  (1)

Draw a disk above the graphic, including the axes:

FormatType  (3)

By default, expressions are displayed usingTraditionalForm in graphics:

Display expressions usingStandardForm:

Labels are also affected byFormatType setting:

Frame  (2)

Draw a frame around the whole graphic:

Draw a frame on the left and the right edges:

FrameLabel  (1)

Specify frame labels for the bottom and the left edges:

Specify labels for each edge:

FrameStyle  (2)

Specify the overall frame style:

Specify the style of each frame edge:

FrameTicks  (2)

Put a frame, but no ticks:

Tick mark labels on the bottom and the left frame edges:

Frame ticks on the bottom and the right edges:

FrameTicksStyle  (2)

Specify frame tick and frame tick label style:

Specify frame tick style for each edge:

GridLines  (3)

Put grids across a 2D graphic:

Draw grid lines at specific positions:

Specify the style of each grid:

GridLinesStyle  (1)

Specify the overall grid style:

ImageMargins  (3)

Allow no margins outside ofImageSize:

Have 20-point margins on all sides:

Leave different margins on each side:

ImagePadding  (4)

Leave no padding outside of the plot range:

Leave enough padding for all objects and labels that are present:

Specify the same padding for all sides in printer's points:

Specify different padding on each side:

ImageSize  (3)

Use predefined symbolic sizes:

Use an explicit image width:

Use an explicit image width and height:

LabelStyle  (1)

Specify the overall style of all the label-like elements:

Method  (4)

"AxesInFront"  (1)

Force axes to be behind drawing primitives:

"FrameInFront"  (1)

By default, frames draw in front of graphics primitives:

Force the frame to draw behind graphics primitives:

"GridLinesInFront"  (1)

Force grid lines to be rendered in front of graphics primitives:

"TransparentPolygonMesh"  (1)

By default, polygon meshes double-paint their edges for efficiency reasons:

The behavior can be turned off using the"TransparentPolygonMesh" method option:

PlotLabel  (2)

Display a label on the top of the graphic inTraditionalForm:

UseStyle and other typesetting functions to modify how the label appears:

PlotRange  (3)

Display all objects:

Explicitly choose and ranges:

Force clipping at thePlotRange:

PlotRange->s is equivalent toPlotRange->{{-s,s},{-s,s}}:

PlotRangeClipping  (2)

Allow graphics objects to spread beyondPlotRange:

Clip all graphics objects atPlotRange:

PlotRangePadding  (3)

Include coordinate unit of padding on all sides:

Include padding usingScaled coordinates:

Specify different padding on each side:

PlotRegion  (3)

The contents of a graphic use the whole region:

Limit the contents of the graphic to the middle half of the region in each direction:

ImagePadding can also be used to add padding around a graphic:

Prolog  (1)

Define a simple graphic to use as a background:

Use it in multiple graphics:

RotateLabel  (2)

Specify that vertical frame labels should be rotated:

Specify that vertical frame labels should not be rotated:

Ticks  (3)

Draw the axes but no tick marks:

Place tick marks automatically:

Draw tick marks at the specific positions:

TicksStyle  (2)

Specify the styles of the ticks and tick labels:

Specify the styles of and axis ticks separately:

Applications  (1)

Draw a complete graph with 9 vertices:

Properties & Relations  (5)

TheStandardForm ofGraphics is its rendered form:

TheInputForm is the textual expression form:

Graphics can be used as input to functions:

Two-dimensional plot functions returnGraphics:

Several integrated data sources returnGraphics:

ManyImport andExport formats supportGraphics:

Neat Examples  (2)

Display an analog clock with current system time:

Digital dahlias:

See Also

Plot ListPlot ListLinePlot ParametricPlot DensityPlot ArrayPlot RegionPlot ContourPlot Show Canvas Graphics3D Image GeometricScene Sound

Front End Tokens:Import

Function Repository:InteractiveGraphics

Tech Notes

Related Guides

Related Workflows

Related Links

History

Introduced in 1988(1.0) |Updated in 1996(3.0)2007(6.0)2008(7.0)2010(8.0)2014(10.0)2022(13.1)

Wolfram Research (1988), Graphics, Wolfram Language function, https://reference.wolfram.com/language/ref/Graphics.html (updated 2022).

Text

Wolfram Research (1988), Graphics, Wolfram Language function, https://reference.wolfram.com/language/ref/Graphics.html (updated 2022).

CMS

Wolfram Language. 1988. "Graphics." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022. https://reference.wolfram.com/language/ref/Graphics.html.

APA

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

BibTeX

@misc{reference.wolfram_2025_graphics, author="Wolfram Research", title="{Graphics}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/Graphics.html}", note=[Accessed: 29-November-2025]}

BibLaTeX

@online{reference.wolfram_2025_graphics, organization={Wolfram Research}, title={Graphics}, year={2022}, url={https://reference.wolfram.com/language/ref/Graphics.html}, note=[Accessed: 29-November-2025]}

Top

[8]ページ先頭

©2009-2025 Movatter.jp