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:

Wolfram Research (1991), Prolog, Wolfram Language function, https://reference.wolfram.com/language/ref/Prolog.html.

Text

Wolfram Research (1991), Prolog, Wolfram Language function, https://reference.wolfram.com/language/ref/Prolog.html.

CMS

Wolfram Language. 1991. "Prolog." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Prolog.html.

APA

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

BibTeX

@misc{reference.wolfram_2024_prolog, author="Wolfram Research", title="{Prolog}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/Prolog.html}", note=[Accessed: 23-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_prolog, organization={Wolfram Research}, title={Prolog}, year={1991}, url={https://reference.wolfram.com/language/ref/Prolog.html}, note=[Accessed: 23-November-2024 ]}