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.

Details

  • 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.

Examples

open allclose all

Basic Examples  (2)

Draw a disk behind the plot of a quadratic function:

Draw a bar chart using rectangles behind ListLinePlot:

Scope  (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:

Applications  (1)

Define a simple graphic to use as a background:

Use it in multiple graphics:

Properties & Relations  (1)

Objects in Prolog are not included during PlotRange computation:

Neat Examples  (1)

Use a raster as a wallpaper:

Introduced in 1991
 (2.0)