Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Visualization and Graphics > Data Visualization > Annotating & Combining Graphics > Combining Graphics > Prolog >
Mathematica > Visualization and Graphics > Function Visualization > Annotating & Combining Graphics > Combining Graphics > Prolog >
Mathematica > Visualization and Graphics > Data Visualization > Function Visualization > Annotating & Combining Graphics > Combining Graphics > Prolog >

Prolog

Prolog
is an option for graphics functions which gives a list of graphics primitives to be rendered before the main part of the graphics is rendered.
  • Graphics primitives specified by Prolog are rendered after axes, boxes, and frames are rendered.
  • In three-dimensional graphics, two-dimensional graphics primitives can be specified by the Prolog option. The graphics primitives are rendered in a 0, 1 coordinate system.
  • Directives specified by Prolog affect only the prolog, and not other contents of a graphic.
Draw a disk behind the plot of a quadratic function:
Draw a bar chart using rectangles behind ListLinePlot:
Draw a disk behind the plot of a quadratic function:
In[1]:=
Click for copyable input
Out[1]=
 
Draw a bar chart using rectangles behind ListLinePlot:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
The ordinary coordinate system is used for Prolog in 2D graphics:
A scaled 0, 1 coordinate system is used for Prolog in 3D graphics:
Define a simple graphic to use as background:
Use it in multiple graphics:
Objects in Prolog are not included during PlotRange computation:
Use a raster as a wallpaper:
New in 2
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF