This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

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