|
SOLUTIONS
|
Search for all pages containing Graphics
BUILT-IN MATHEMATICA SYMBOL
Graphics
Graphics[primitives, options]
represents a two-dimensional graphical image.
Details and OptionsDetails and Options
- Graphics is displayed in StandardForm as a graphical image. In InputForm it is displayed as an explicit list of primitives.
- The following graphics primitives can be used: »
-
Arrow[{{x1,y1},...}] arrow BezierCurve[{pt1,pt2,...}] Bézier curve BSplineCurve[{pt1,pt2,...}] B-spline curve Circle[{x,y},r] circle Disk[{x,y},r] filled disk FilledCurve[{seg1,seg2,...}] filled curve Inset[obj,...] inset object GraphicsComplex[pts,prims] complex of graphics objects GraphicsGroup[{g1,g2,...}] objects selectable as a group JoinedCurve[{seg1,seg2,...}] joined curve segments Line[{{x1,y1},...}] line Locator[{x,y}] dynamic locator Point[{x,y}] point Polygon[{{x1,y1},...}] polygon Raster[array] array of gray or colored squares Rectangle[{xmin,ymin},{xmax,ymax}] rectangle Text[expr,{x,y}] text - The following graphics directives can be used: »
-
AbsoluteDashing[{w1,...}] absolute line dashing specification AbsolutePointSize[d] absolute point size specification AbsoluteThickness[w] absolute line thickness specification Arrowheads[specs] arrowheads specification CapForm[type] line cap specification CMYKColor[c,m,y,k] color specification Dashing[{w1,...}] line dashing specification Directive[g1,g2,...] composite graphics directive EdgeForm[g] edge drawing specification FaceForm[g] face drawing specification GrayLevel[i] intensity specification Hue[h] hue specification JoinForm[type] line joining specification Opacity[a] opacity specification PointSize[d] point size specification RGBColor[r,g,b] color specification Texture[obj] texture specification Thickness[w] line thickness specification - The following wrappers can be used at any level:
-
Annotation[obj,label] give an annotation Button[obj,action] make obj act as a button Dynamic[obj] use the dynamically updated current value EventHandler[obj,...] attach an event handler Hyperlink[obj,URI] make obj a hyperlink Mouseover[obj,over] specify a mouseover form PopupWindow[obj,cont] attach a popup window StatusArea[obj,label] specify a label to appear in the status area Style[obj,opts] specify a style Tooltip[obj,label] attach a tooltip - The following options can be given:
-
AlignmentPoint Center the default point in the graphic to align with AspectRatio Automatic ratio of height to width Axes False whether to draw axes AxesLabel None axes labels AxesOrigin Automatic where axes should cross AxesStyle {} style specifications for the axes Background None background color for the plot BaselinePosition Automatic how to align with a surrounding text baseline BaseStyle {} base style specifications for the graphic ContentSelectable Automatic whether to allow contents to be selected CoordinatesToolOptions Automatic detailed behavior of the coordinates tool DisplayFunction $DisplayFunction function for generating output Epilog {} primitives rendered after the main plot FormatType TraditionalForm the default format type for text Frame False whether to put a frame around the plot FrameLabel None frame labels FrameStyle {} style specifications for the frame FrameTicks Automatic frame ticks FrameTicksStyle {} style specifications for frame ticks GridLines None grid lines to draw GridLinesStyle {} style specifications for grid lines ImageMargins 0. the margins to leave around the graphic ImagePadding All what extra padding to allow for labels, etc. ImageSize Automatic the absolute size at which to render the graphic LabelStyle {} style specifications for labels Method Automatic details of graphics methods to use PlotLabel None an overall label for the plot PlotRange All range of values to include PlotRangeClipping False whether to clip at the plot range PlotRangePadding Automatic how much to pad the range of values PlotRegion Automatic the final display region to be filled PreserveImageOptions Automatic whether to preserve image options when displaying new versions of the same graphic Prolog {} primitives rendered before the main plot RotateLabel True whether to rotate y labels on the frame Ticks Automatic axes ticks TicksStyle {} style specifications for axes ticks - Nested lists of graphics constructs can be given. Directive specifications such as GrayLevel remain in effect only until the end of the list that contains them. »
- Style[obj, opts] can be used to apply the options or directives opts to obj. »
- The settings for BaseStyle are appended to the default style typically given by the
style in the current stylesheet. The settings for AxesStyle, LabelStyle, etc. are appended to the default styles given for
,
, etc. - Graphics[] gives an empty graphic with the default image size.
New in 1 | Last modified in 8
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »





